matrix/roles/synapse/defaults/main/homeserver.email.yml

52 lines
2.2 KiB
YAML
Raw Normal View History

2024-09-20 12:15:55 +00:00
---
synapse_config_email_smtp_host: ~
synapse_config_email_smtp_port: 465
synapse_config_email_smtp_user: ~
synapse_config_email_smtp_pass: ~
synapse_config_email_force_tls: false
synapse_config_email_require_transport_security: false
synapse_config_email_enable_tls: true
synapse_config_email_app_name: "[matrix]"
synapse_config_email_notif_from: >-
"%(app)s" <synapse@{{ synapse_domain }}>
synapse_config_email_enable_notifs: false
synapse_config_email_notif_for_new_users: true
synapse_config_email_notif_delay_before_mail: "10m"
synapse_config_email_client_base_url: "https://matrix.to"
synapse_config_email_validation_token_lifetime: "1h"
synapse_config_email_invite_client_location: ~
synapse_config_email_subjects: {}
synapse_email_config: >-
{{
(synapse_base_email_config
if synapse_config_email_smtp_host | default(false, true) else {})
| combine(synapse_base_email_auth_config
if (synapse_config_email_smtp_user | default(false, true)
and synapse_config_email_smtp_pass | default(false, true))
else {})
| combine(({"email": {"invite_client_location": synapse_config_email_invite_client_location}})
if synapse_config_email_invite_client_location | default(false, true) else {})
}}
synapse_base_email_auth_config:
smtp_user: "{{ synapse_config_email_smtp_user }}"
smtp_pass: "{{ synapse_config_email_smtp_pass }}"
synapse_base_email_config:
email:
smtp_host: "{{ synapse_config_email_smtp_host }}"
smtp_port: "{{ synapse_config_email_smtp_port }}"
force_tls: "{{ synapse_config_email_force_tls }}"
require_transport_security: >-
{{ synapse_config_email_require_transport_security}}
enable_tls: "{{ synapse_config_email_enable_tls }}"
app_name: "{{ synapse_config_email_app_name }}"
notif_from: "{[ synapse_config_email_notif_from }}"
enable_notifs: "{{ synapse_config_email_enable_notifs }}"
notif_for_new_users: "{{ synapse_config_email_notif_for_new_users }}"
notif_delay_before_mail: >-
{{ synapse_config_email_notif_delay_before_mail }}
client_base_url: "{{ synapse_config_email_client_base_url }}"
validation_token_lifetime: >-
{{ synapse_config_email_validation_token_lifetime }}
subjects: "{{ synapse_config_email_subjects }}"