From 919e9253ae13cfb74fa54292fabe068744eab826 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Sun, 13 Mar 2022 16:55:48 +0100 Subject: [PATCH] Disable registrations by default See https://git.coopcloud.tech/coop-cloud/matrix-synapse/issues/22. --- .env.sample | 2 ++ abra.sh | 2 +- compose.yml | 1 + homeserver.yaml.tmpl | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.env.sample b/.env.sample index 459acda..6e33c00 100644 --- a/.env.sample +++ b/.env.sample @@ -15,6 +15,8 @@ COMPOSE_FILE="compose.yml" #DISABLE_FEDERATION=1 +ENABLE_REGISTRATION=false + #AUTO_JOIN_ROOM_ENABLED=1 #AUTO_JOIN_ROOM="#example:example.com" diff --git a/abra.sh b/abra.sh index 13fd8b8..a9fc1e5 100644 --- a/abra.sh +++ b/abra.sh @@ -1,3 +1,3 @@ export ENTRYPOINT_CONF_VERSION=v1 -export HOMESERVER_YAML_VERSION=v4 +export HOMESERVER_YAML_VERSION=v5 export LOG_CONFIG_VERSION=v2 diff --git a/compose.yml b/compose.yml index b125158..150646f 100644 --- a/compose.yml +++ b/compose.yml @@ -18,6 +18,7 @@ services: - DOMAIN - ENABLE_3PID_LOOKUP - ENABLE_ALLOWLIST + - ENABLE_REGISTRATION - FEDERATION_ALLOWLIST - LETSENCRYPT_HOST=${DOMAIN} - REDACTION_RETENTION_PERIOD diff --git a/homeserver.yaml.tmpl b/homeserver.yaml.tmpl index dd3bdda..4ae65c1 100644 --- a/homeserver.yaml.tmpl +++ b/homeserver.yaml.tmpl @@ -1169,7 +1169,7 @@ turn_allow_guests: {{ env "TURN_ALLOW_GUESTS" }} # Enable registration for new users. # -#enable_registration: false +enable_registration: {{ env "ENABLE_REGISTRATION" }} # Time that a user's session remains valid for, after they log in. #