From aaafdef7e1e4418c4be88e448551f8bb052525d6 Mon Sep 17 00:00:00 2001 From: James Graham Date: Fri, 24 Apr 2020 13:00:09 +0100 Subject: [PATCH] deploy: Add email config to settings.ini template --- roles/webserver/templates/settings.j2 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/webserver/templates/settings.j2 b/roles/webserver/templates/settings.j2 index 16c4d77..4f45b14 100644 --- a/roles/webserver/templates/settings.j2 +++ b/roles/webserver/templates/settings.j2 @@ -8,3 +8,13 @@ DATABASE_URL=mysql://{{ db_user }}:{{ db_pass }}@localhost:3306/{{ db_name }} PROJECT_SHORT_NAME={{ display_short_name }} PROJECT_LONG_NAME={{ display_long_name }} + +{% if email_host is defined %} +EMAIL_HOST={{ email_host }} +{% endif %} +{% if default_from_email is defined %} +DEFAULT_FROM_EMAIL={{ default_from_email }} +{% endif %} +{% if email_port is defined %} +EMAIL_PORT={{ email_port }} +{% endif %}