mirror of
https://github.com/SaraSmiseth/prosody.git
synced 2025-01-18 13:10:37 +00:00
set registration_invite_only
This commit is contained in:
parent
2173f8eff3
commit
d1db0837ec
3 changed files with 3 additions and 2 deletions
|
@ -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"}
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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** |
|
||||
|
|
Loading…
Reference in a new issue