-- see example config at https://hg.prosody.im/-1.9/file/0.9.10/prosody.cfg.lua.dist -- easily extendable by putting into different config files within conf.d folder local getenv = Lua.os.getenv local stringy = Lua.require "stringy" local prosody_admins = getenv("PROSODY_ADMINS") or ""; admins = stringy.split(prosody_admins, ", "); pidfile = "/var/run/prosody/prosody.pid" allow_registration = getenv("ALLOW_REGISTRATION") or "true"; c2s_require_encryption = getenv("C2S_REQUIRE_ENCRYPTION") or "true"; s2s_require_encryption = getenv("S2S_REQUIRE_ENCRYPTION") or "true"; s2s_secure_auth = getenv("S2S_SECURE_AUTH") or "true"; authentication = getenv("AUTHENTICATION") or "internal_hashed"; ldap_base = getenv("LDAP_BASE"); ldap_server = getenv("LDAP_SERVER") or "localhost"; ldap_rootdn = getenv("LDAP_ROOTDN") or ""; ldap_password = getenv("LDAP_PASSWORD") or ""; ldap_filter = getenv("LDAP_FILTER") or "(uid=$user)"; ldap_scope = getenv("LDAP_SCOPE") or "subtree"; ldap_tls = getenv("LDAP_TLS") or "false"; ldap_mode = getenv("LDAP_MODE") or "bind"; ldap_admin_filter = getenv("LDAP_ADMIN_FILTER") or ""; log = { {levels = {min = getenv("LOG_LEVEL") or "info"}, to = "console"}; }; Include "conf.d/*.cfg.lua";