mirror of
https://github.com/SaraSmiseth/prosody.git
synced 2025-05-04 05:00:39 +00:00
Environment variables for most of prosody.cfg.lua
This commit is contained in:
parent
b3d3eee131
commit
4ff329cad2
3 changed files with 17 additions and 6 deletions
|
@ -5,15 +5,16 @@ admins = {};
|
|||
|
||||
use_libevent = true; -- improves performance
|
||||
|
||||
allow_registration = true;
|
||||
allow_registration = os.getenv("ALLOW_REGISTRATION");
|
||||
|
||||
c2s_require_encryption = true;
|
||||
s2s_secure_auth = true;
|
||||
c2s_require_encryption = os.getenv("C2S_REQUIRE_ENCRYPTION");
|
||||
s2s_require_encryption = os.getenv("S2S_REQUIRE_ENCRYPTION");
|
||||
s2s_secure_auth = os.getenv("S2S_SECURE_AUTH");
|
||||
|
||||
authentication = "internal_hashed";
|
||||
|
||||
log = {
|
||||
{levels = {min = "info"}, to = "console"};
|
||||
{levels = {min = os.getenv("LOG_LEVEL")}, to = "console"};
|
||||
};
|
||||
|
||||
Include "conf.d/*.cfg.lua";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue