mirror of
https://github.com/SaraSmiseth/prosody.git
synced 2025-01-18 05:00:36 +00:00
Add PROSODY_ADMINS to specify who is an administrator. Fixes #7
This commit is contained in:
parent
20b7d7258d
commit
2500028412
4 changed files with 4 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
* Add badges to README. Fixes #5.
|
||||
* Update readme. Fixes #2
|
||||
* Add PROSODY_ADMINS to specify who is an administrator. Fixes #7
|
||||
|
||||
## v1.0.0
|
||||
|
||||
|
|
|
@ -24,5 +24,6 @@ export LOG_LEVEL=${LOG_LEVEL:-"info"}
|
|||
export C2S_REQUIRE_ENCRYPTION=${C2S_REQUIRE_ENCRYPTION:-true}
|
||||
export S2S_REQUIRE_ENCRYPTION=${S2S_REQUIRE_ENCRYPTION:-true}
|
||||
export S2S_SECURE_AUTH=${S2S_SECURE_AUTH:-true}
|
||||
export PROSODY_ADMINS=${PROSODY_ADMINS:-""}
|
||||
|
||||
exec "$@"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
-- see example config at https://hg.prosody.im/0.9/file/0.9.10/prosody.cfg.lua.dist
|
||||
-- easily extendable by putting into different config files within conf.d folder
|
||||
|
||||
admins = {};
|
||||
admins = { os.getenv("PROSODY_ADMINS") };
|
||||
|
||||
use_libevent = true; -- improves performance
|
||||
|
||||
|
|
|
@ -197,6 +197,7 @@ Inspect logs: ```docker-compose logs -f```.
|
|||
| **C2S_REQUIRE_ENCRYPTION** | Whether to force all client-to-server connections to be encrypted or not | *optional* | true |
|
||||
| **S2S_REQUIRE_ENCRYPTION** | Whether to force all server-to-server connections to be encrypted or not | *optional* | true |
|
||||
| **S2S_SECURE_AUTH** | Require encryption and certificate authentication | *optional* | true |
|
||||
| **PROSODY_ADMINS** | Specify who is an administrator. List of adresses. Eg. "me@example.com", "admin@example.net" | *optional* | "" |
|
||||
|
||||
#### DNS
|
||||
|
||||
|
|
Loading…
Reference in a new issue