From dfcbc75630670e5b0dcc14a6e449250f7e6e7186 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Sat, 1 Feb 2020 03:09:50 +0100 Subject: [PATCH] Added config for SMTP server to send emails Signed-off-by: Jim Martens --- roles/rt/templates/etc/rt/docker-compose.yml.j2 | 6 ++++++ rt_vars.yml.example | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/roles/rt/templates/etc/rt/docker-compose.yml.j2 b/roles/rt/templates/etc/rt/docker-compose.yml.j2 index a780abb..b0cc44f 100644 --- a/roles/rt/templates/etc/rt/docker-compose.yml.j2 +++ b/roles/rt/templates/etc/rt/docker-compose.yml.j2 @@ -50,6 +50,12 @@ services: - OWNER_EMAIL={{ admin_mail }} - WEB_BASE_URL=https://{{ rt_domain}} - WEB_PORT=443 + - MAIL_HOST={{ rt_mail_host }} + - MAIL_USER={{ rt_mail_user }} + - MAIL_PASS={{ rt_mail_password }} + - MAIL_PORT=587 + - CORRESPOND_ADDRESS={{ rt_correspond_address }} + - COMMENT_ADDRESS={{ rt_comment_address }} - LC_ALL=C.UTF-8 - LANG=C.UTF-8 networks: diff --git a/rt_vars.yml.example b/rt_vars.yml.example index 8eb9d71..7186091 100644 --- a/rt_vars.yml.example +++ b/rt_vars.yml.example @@ -2,3 +2,8 @@ rt_domain: best-practical.com rt_postgres_user: postgres rt_postgres_password: NotSafePleaseChange +rt_mail_host: example.com +rt_mail_user: alice +rt_mail_pass: unreliable +rt_correspond_address: rt@example.com +rt_comment_address: rt-comment@example.com