Skip to content

Commit

Permalink
set registration_invite_only
Browse files Browse the repository at this point in the history
  • Loading branch information
SaraSmiseth committed Mar 13, 2021
1 parent 3fdb309 commit 28bbb48
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down
1 change: 1 addition & 0 deletions prosody.cfg.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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** |
Expand Down

0 comments on commit 28bbb48

Please sign in to comment.