From adf521f8cb0f0b4617ff69671b0b466aa5ae801a Mon Sep 17 00:00:00 2001 From: Aine Date: Thu, 5 Feb 2026 19:09:51 +0000 Subject: [PATCH] add matrix_synapse_email_enable_notifs and matrix_synapse_email_notif_for_new_users --- roles/custom/matrix-synapse/defaults/main.yml | 2 ++ .../matrix-synapse/templates/synapse/homeserver.yaml.j2 | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/roles/custom/matrix-synapse/defaults/main.yml b/roles/custom/matrix-synapse/defaults/main.yml index 192fa58cd..27d782370 100644 --- a/roles/custom/matrix-synapse/defaults/main.yml +++ b/roles/custom/matrix-synapse/defaults/main.yml @@ -1242,6 +1242,8 @@ matrix_synapse_email_smtp_pass: "" matrix_synapse_email_smtp_require_transport_security: false matrix_synapse_email_notif_from: "Matrix " matrix_synapse_email_app_name: Matrix +matrix_synapse_email_enable_notifs: true +matrix_synapse_email_notif_for_new_users: true matrix_synapse_email_client_base_url: "{{ 'https' if matrix_playbook_ssl_enabled else 'http' }}://{{ matrix_server_fqn_element }}" matrix_synapse_email_invite_client_location: "https://app.element.io" diff --git a/roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 b/roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 index 1a601da83..558dc1729 100644 --- a/roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 +++ b/roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 @@ -2400,13 +2400,13 @@ email: # has missed. Disabled by default. # #enable_notifs: false - enable_notifs: true + enable_notifs: {{ matrix_synapse_email_enable_notifs|to_json }} # Uncomment the following to disable automatic subscription to email # notifications for new users. Enabled by default. # #notif_for_new_users: false - notif_for_new_users: True + notif_for_new_users: {{ matrix_synapse_email_notif_for_new_users|to_json }} # Custom URL for client links within the email notifications. By default # links will be based on "https://matrix.to".