src.nth.io/

summaryrefslogtreecommitdiff
path: root/dendrite
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2023-01-08 21:50:33 -0600
committerLuke Hoersten <[email protected]>2023-01-08 21:50:33 -0600
commitd8c85028cb66be1082e9dce6e3bac8f509bb5893 (patch)
tree32a8c64bc612dc6c840b02c410cc854e17ba67cf /dendrite
parent43517ea428940810e3f01904113ed70eff1d60de (diff)
Added variable for enabling dendrite reg.
Diffstat (limited to 'dendrite')
-rw-r--r--dendrite/server/defaults/main.yaml1
-rw-r--r--dendrite/server/templates/dendrite.yaml.j22
2 files changed, 2 insertions, 1 deletions
diff --git a/dendrite/server/defaults/main.yaml b/dendrite/server/defaults/main.yaml
index 8ee418d..b81c555 100644
--- a/dendrite/server/defaults/main.yaml
+++ b/dendrite/server/defaults/main.yaml
@@ -5,6 +5,7 @@ dendrite_version: "0.10.8"
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}}"
diff --git a/dendrite/server/templates/dendrite.yaml.j2 b/dendrite/server/templates/dendrite.yaml.j2
index a5073ed..d57f510 100644
--- a/dendrite/server/templates/dendrite.yaml.j2
+++ b/dendrite/server/templates/dendrite.yaml.j2
@@ -128,7 +128,7 @@ app_service_api:
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.