Added variable for enabling dendrite reg.
authorLuke Hoersten <luke@hoersten.org>
Sun, 08 Jan 2023 21:50:33 -0600
changeset 206 35f2b1e680ed
parent 205 2ea9460dc8d2
child 207 e16c94c81b53
Added variable for enabling dendrite reg.
dendrite/server/defaults/main.yaml
dendrite/server/templates/dendrite.yaml.j2
--- a/dendrite/server/defaults/main.yaml	Sun Jan 08 16:51:18 2023 -0600
+++ b/dendrite/server/defaults/main.yaml	Sun Jan 08 21:50:33 2023 -0600
@@ -5,6 +5,7 @@
 dendrite_tar: "https://github.com/matrix-org/dendrite/archive/refs/tags/v{{dendrite_version}}.tar.gz"
 dendrite_build_dir: "/tmp/dendrite-{{dendrite_version}}"
 dendrite_old_key: false
+dendrite_registration_disabled: true
 dendrite_registration_secret: ""
 
 dendrite_db_user: "dendrite_{{dendrite_instance}}"
--- a/dendrite/server/templates/dendrite.yaml.j2	Sun Jan 08 16:51:18 2023 -0600
+++ b/dendrite/server/templates/dendrite.yaml.j2	Sun Jan 08 21:50:33 2023 -0600
@@ -128,7 +128,7 @@
 client_api:
   # Prevents new users from being able to register on this homeserver, except when
   # using the registration shared secret below.
-  registration_disabled: true
+  registration_disabled: {{dendrite_registration_disabled}}
 
   # Prevents new guest accounts from being created. Guest registration is also
   # disabled implicitly by setting 'registration_disabled' above.