Skip to content
Snippets Groups Projects
Commit ef1f8d4b authored by kaiyou's avatar kaiyou
Browse files

Enable email server configuration from environment variables

parent a0af0054
Branches
Tags
No related merge requests found
...@@ -119,3 +119,10 @@ Database specific values (will use SQLite if not set): ...@@ -119,3 +119,10 @@ Database specific values (will use SQLite if not set):
* `POSTGRES_HOST` - The host of the postgres database if you wish to use postgresql instead of sqlite3. [default: `db` which is useful when using a container on the same docker network in a compose file where the postgres service is called `db`] * `POSTGRES_HOST` - The host of the postgres database if you wish to use postgresql instead of sqlite3. [default: `db` which is useful when using a container on the same docker network in a compose file where the postgres service is called `db`]
* `POSTGRES_PASSWORD` - The password for the synapse postgres database. **If this is set then postgres will be used instead of sqlite3.** [default: none] **NOTE**: You are highly encouraged to use postgresql! Please use the compose file to make it easier to deploy. * `POSTGRES_PASSWORD` - The password for the synapse postgres database. **If this is set then postgres will be used instead of sqlite3.** [default: none] **NOTE**: You are highly encouraged to use postgresql! Please use the compose file to make it easier to deploy.
* `POSTGRES_USER` - The user for the synapse postgres database. [default: `matrix`] * `POSTGRES_USER` - The user for the synapse postgres database. [default: `matrix`]
Mail server specific values (will not send emails if not set):
* ``SYNAPSE_SMTP_HOST``, hostname to the mail server.
* ``SYNAPSE_SMTP_PORT``, TCP port for accessing the mail server [default ``25``].
* ``SYNAPSE_SMTP_USER``, username for authenticating against the mail server if any.
* ``SYNAPSE_SMTP_PASSWORD``, password for authenticating against the mail server if any.
...@@ -146,6 +146,7 @@ enable_registration: {{ "True" if SYNAPSE_ENABLE_REGISTRATION else "False" }} ...@@ -146,6 +146,7 @@ enable_registration: {{ "True" if SYNAPSE_ENABLE_REGISTRATION else "False" }}
registration_shared_secret: "{{ SYNAPSE_REGISTRATION_SHARED_SECRET }}" registration_shared_secret: "{{ SYNAPSE_REGISTRATION_SHARED_SECRET }}"
bcrypt_rounds: 12 bcrypt_rounds: 12
allow_guest_access: {{ "True" if SYNAPSE_ALLOW_GUEST else "False" }} allow_guest_access: {{ "True" if SYNAPSE_ALLOW_GUEST else "False" }}
enable_group_creation: true
# The list of identity servers trusted to verify third party # The list of identity servers trusted to verify third party
# identifiers by this server. # identifiers by this server.
...@@ -200,19 +201,19 @@ perspectives: ...@@ -200,19 +201,19 @@ perspectives:
password_config: password_config:
enabled: true enabled: true
#email: {% if SYNAPSE_SMTP_HOST %}
# enable_notifs: false email:
# smtp_host: "localhost" enable_notifs: false
# smtp_port: 25 smtp_host: "{{ SYNAPSE_SMTP_HOST }}"
# smtp_user: "exampleusername" smtp_port: {{ SYNAPSE_SMTP_PORT or "25" }}
# smtp_pass: "examplepassword" smtp_user: "{{ SYNAPSE_SMTP_USER }}"
# require_transport_security: False smtp_pass: "{{ SYNAPSE_SMTP_PASSWORD }}"
# notif_from: "Your Friendly %(app)s Home Server <noreply@example.com>" require_transport_security: False
# app_name: Matrix notif_from: "{{ SYNAPSE_SMTP_FROM or "hostmaster@" + SYNAPSE_SERVER_NAME }}"
# template_dir: res/templates app_name: Matrix
# notif_template_html: notif_mail.html template_dir: res/templates
# notif_template_text: notif_mail.txt notif_template_html: notif_mail.html
# notif_for_new_users: True notif_template_text: notif_mail.txt
# riot_base_url: "http://localhost/riot" notif_for_new_users: True
riot_base_url: "https://{{ SYNAPSE_SERVER_NAME }}"
enable_group_creation: true {% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment