diff options
author | Richard van der Hoff <richard@matrix.org> | 2018-10-17 15:44:34 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2018-10-17 16:46:02 +0100 |
commit | 1519572961d22aeaacbe9fccae7788f0f9e72b1c (patch) | |
tree | 0d7556ac6c3d2c1d1ee150a2be2d0df1771fe45c /docker/conf | |
parent | update changelog (diff) | |
download | synapse-1519572961d22aeaacbe9fccae7788f0f9e72b1c.tar.xz |
Ship the email templates as package_data
move the example email templates into the synapse package so that they can be used as package data, which should mean that all of the packaging mechanisms (pip, docker, debian, arch, etc) should now come with the example templates. In order to grandfather in people who relied on the templates being in the old place, check for that situation and fall back to using the defaults if the templates directory does not exist.
Diffstat (limited to 'docker/conf')
-rw-r--r-- | docker/conf/homeserver.yaml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docker/conf/homeserver.yaml b/docker/conf/homeserver.yaml index cfe88788f2..a38b929f50 100644 --- a/docker/conf/homeserver.yaml +++ b/docker/conf/homeserver.yaml @@ -211,7 +211,9 @@ email: require_transport_security: False notif_from: "{{ SYNAPSE_SMTP_FROM or "hostmaster@" + SYNAPSE_SERVER_NAME }}" app_name: Matrix - template_dir: res/templates + # if template_dir is unset, uses the example templates that are part of + # the Synapse distribution. + #template_dir: res/templates notif_template_html: notif_mail.html notif_template_text: notif_mail.txt notif_for_new_users: True |