From d1db0837ecb8c75db8fe040fcbe8130ef6670423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sara=20Aim=C3=A9e=20Smiseth?= <51710585+SaraSmiseth@users.noreply.github.com> Date: Sat, 13 Mar 2021 18:01:20 +0100 Subject: [PATCH] set registration_invite_only --- docker-entrypoint.bash | 2 +- prosody.cfg.lua | 1 + readme.md | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docker-entrypoint.bash b/docker-entrypoint.bash index c38cd5d..bb8141f 100755 --- a/docker-entrypoint.bash +++ b/docker-entrypoint.bash @@ -2,7 +2,7 @@ set -e export ALLOW_REGISTRATION=${ALLOW_REGISTRATION:-true} -export REGISTRATION_INVITE_ONLY=${REGISTRATION_INVITE_ONLY:-true} +export REGISTRATION_INVITE_ONLY=${REGISTRATION_INVITE_ONLY:-false} export DOMAIN_HTTP_UPLOAD=${DOMAIN_HTTP_UPLOAD:-"upload.$DOMAIN"} export DOMAIN_MUC=${DOMAIN_MUC:-"conference.$DOMAIN"} export DOMAIN_PROXY=${DOMAIN_PROXY:-"proxy.$DOMAIN"} diff --git a/prosody.cfg.lua b/prosody.cfg.lua index f0b0f3c..0c41b51 100644 --- a/prosody.cfg.lua +++ b/prosody.cfg.lua @@ -10,6 +10,7 @@ pidfile = "/var/run/prosody/prosody.pid" use_libevent = true; -- improves performance allow_registration = os.getenv("ALLOW_REGISTRATION"); +registration_invite_only = os.getenv("REGISTRATION_INVITE_ONLY"); c2s_require_encryption = os.getenv("C2S_REQUIRE_ENCRYPTION"); s2s_require_encryption = os.getenv("S2S_REQUIRE_ENCRYPTION"); diff --git a/readme.md b/readme.md index 7fa0722..b80eac8 100644 --- a/readme.md +++ b/readme.md @@ -189,7 +189,7 @@ Inspect logs: ```docker-compose logs -f```. | Variable | Description | Type | Default value | | -------------------------------- | -------------------------------------------------------------------------------------------------------------------- | ------------ | -------------------------- | | **ALLOW_REGISTRATION** | Whether to allow registration of new accounts via Jabber clients | *optional* | true | -| **REGISTRATION_INVITE_ONLY** | Require an invitation token for all account registration | *optional* | true | +| **REGISTRATION_INVITE_ONLY** | Require an invitation token for all account registration | *optional* | false | | **DOMAIN** | domain | **required** | null | | **DOMAIN_HTTP_UPLOAD** | Domain which lets clients upload files over HTTP | *optional* | upload.**DOMAIN** | | **DOMAIN_MUC** | Domain for Multi-user chat (MUC) for allowing you to create hosted chatrooms/conferences for XMPP users | *optional* | conference.**DOMAIN** |