diff --git a/.env.sample b/.env.sample index 47d53da..4cffa95 100644 --- a/.env.sample +++ b/.env.sample @@ -33,6 +33,9 @@ ALLOW_PUBLIC_ROOMS_FEDERATION=false ENABLE_REGISTRATION=false PASSWORD_LOGIN_ENABLED=true +# Token based registration. Enable ADMIN_INTERFACE_ENABLED=1 (below) to use the admin interface to generate tokens. +#REGISTRATION_REQUIRES_TOKEN=true + ## Room auto-join #AUTO_JOIN_ROOM_ENABLED=1 diff --git a/abra.sh b/abra.sh index 92a02c6..f7e3a93 100644 --- a/abra.sh +++ b/abra.sh @@ -1,6 +1,6 @@ export DISCORD_BRIDGE_YAML_VERSION=v2 export ENTRYPOINT_CONF_VERSION=v3 -export HOMESERVER_YAML_VERSION=v29 +export HOMESERVER_YAML_VERSION=v30 export LOG_CONFIG_VERSION=v2 export SHARED_SECRET_AUTH_VERSION=v2 export SIGNAL_BRIDGE_YAML_VERSION=v6 diff --git a/compose.yml b/compose.yml index c6ddd86..5619b03 100644 --- a/compose.yml +++ b/compose.yml @@ -53,6 +53,7 @@ services: - ENABLE_3PID_LOOKUP - ENABLE_ALLOWLIST - ENABLE_REGISTRATION + - REGISTRATION_REQUIRES_TOKEN - ENCRYPTED_BY_DEFAULT - FEDERATION_ALLOWLIST - LETSENCRYPT_HOST=${DOMAIN} diff --git a/homeserver.yaml.tmpl b/homeserver.yaml.tmpl index 1d5427a..9e40d9f 100644 --- a/homeserver.yaml.tmpl +++ b/homeserver.yaml.tmpl @@ -132,6 +132,8 @@ turn_allow_guests: {{ env "TURN_ALLOW_GUESTS" }} # https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html#enable_registration enable_registration: {{ env "ENABLE_REGISTRATION" }} +registration_requires_token: {{ env "REGISTRATION_REQUIRES_TOKEN" }} + # https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html#enable_3pid_lookup enable_3pid_lookup: {{ env "ENABLE_3PID_LOOKUP" }}