2016-10-18 20:20:59 +00:00
|
|
|
-- 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
|
|
|
|
|
2020-10-10 06:55:43 +00:00
|
|
|
local stringy = require "stringy"
|
|
|
|
|
|
|
|
admins = stringy.split(os.getenv("PROSODY_ADMINS"), ", ");
|
|
|
|
|
|
|
|
pidfile = "/var/run/prosody/prosody.pid"
|
2016-10-18 20:20:59 +00:00
|
|
|
|
|
|
|
use_libevent = true; -- improves performance
|
|
|
|
|
2020-06-01 06:18:15 +00:00
|
|
|
allow_registration = os.getenv("ALLOW_REGISTRATION");
|
2021-03-13 17:01:20 +00:00
|
|
|
registration_invite_only = os.getenv("REGISTRATION_INVITE_ONLY");
|
2016-10-18 20:20:59 +00:00
|
|
|
|
2020-06-01 06:18:15 +00:00
|
|
|
c2s_require_encryption = os.getenv("C2S_REQUIRE_ENCRYPTION");
|
|
|
|
s2s_require_encryption = os.getenv("S2S_REQUIRE_ENCRYPTION");
|
|
|
|
s2s_secure_auth = os.getenv("S2S_SECURE_AUTH");
|
2016-10-18 20:20:59 +00:00
|
|
|
|
|
|
|
authentication = "internal_hashed";
|
|
|
|
|
|
|
|
log = {
|
2020-06-01 06:18:15 +00:00
|
|
|
{levels = {min = os.getenv("LOG_LEVEL")}, to = "console"};
|
2016-10-18 20:20:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
Include "conf.d/*.cfg.lua";
|