From 8ff8e435c0996a7cb77e9d28558fba30aca34c6d Mon Sep 17 00:00:00 2001 From: Aine Date: Mon, 25 Aug 2025 09:58:34 +0100 Subject: [PATCH] add matrix_synapse_admin_contact var --- roles/custom/matrix-synapse/defaults/main.yml | 4 ++++ .../matrix-synapse/templates/synapse/homeserver.yaml.j2 | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/custom/matrix-synapse/defaults/main.yml b/roles/custom/matrix-synapse/defaults/main.yml index 91c874312..26f6f049a 100644 --- a/roles/custom/matrix-synapse/defaults/main.yml +++ b/roles/custom/matrix-synapse/defaults/main.yml @@ -374,6 +374,10 @@ matrix_synapse_registration_shared_secret: "{{ matrix_synapse_macaroon_secret_ke matrix_synapse_allow_guest_access: false matrix_synapse_form_secret: "{{ matrix_synapse_macaroon_secret_key }}" + +# Controls how to reach server admin, used in ResouceLimitError +matrix_synapse_admin_contact: ~ + matrix_synapse_max_upload_size_mb: 50 # Controls whether local media should be removed under certain conditions, typically for the purpose of saving space. diff --git a/roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 b/roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 index eda7440db..3c05db49d 100644 --- a/roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 +++ b/roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 @@ -391,7 +391,7 @@ manhole_settings: # How to reach the server admin, used in ResourceLimitError # -#admin_contact: 'mailto:admin@example.com' +admin_contact: {{ matrix_synapse_admin_contact | to_json }} # Global blocking #