From 761e6d4cd64d0486966021b93925498bbf9ea317 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Thu, 10 Apr 2025 12:52:44 +0300 Subject: [PATCH] Add `matrix_dendrite_guests_disabled` --- roles/custom/matrix-dendrite/defaults/main.yml | 3 +++ roles/custom/matrix-dendrite/templates/dendrite.yaml.j2 | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/custom/matrix-dendrite/defaults/main.yml b/roles/custom/matrix-dendrite/defaults/main.yml index 50e9116eb..d4b1bab79 100644 --- a/roles/custom/matrix-dendrite/defaults/main.yml +++ b/roles/custom/matrix-dendrite/defaults/main.yml @@ -240,6 +240,9 @@ matrix_dendrite_client_api_rate_limiting_cooloff_ms: 500 # Controls whether people with access to the homeserver can register by themselves. matrix_dendrite_client_api_registration_disabled: true +# Controls whether guest accounts are disabled +matrix_dendrite_guests_disabled: true + # reCAPTCHA API for validating registration attempts matrix_dendrite_client_api_enable_registration_captcha: false matrix_dendrite_client_api_recaptcha_public_key: "" diff --git a/roles/custom/matrix-dendrite/templates/dendrite.yaml.j2 b/roles/custom/matrix-dendrite/templates/dendrite.yaml.j2 index 8f03b16db..8c99c060f 100644 --- a/roles/custom/matrix-dendrite/templates/dendrite.yaml.j2 +++ b/roles/custom/matrix-dendrite/templates/dendrite.yaml.j2 @@ -189,7 +189,7 @@ client_api: # Prevents new guest accounts from being created. Guest registration is also # disabled implicitly by setting 'registration_disabled' above. - guests_disabled: true + guests_disabled: {{ matrix_dendrite_guests_disabled | to_json }} # If set, allows registration by anyone who knows the shared secret, regardless of # whether registration is otherwise disabled.