Files
prosody-podman/conf.d/03-e2e-policy.cfg.lua
T
2026-08-02 19:35:07 +02:00

14 lines
831 B
Lua

local getenv = Lua.os.getenv
local stringy = Lua.require "stringy"
e2e_policy_chat = getenv("E2E_POLICY_CHAT") or "required"
e2e_policy_muc = getenv("E2E_POLICY_MUC") or "required"
local whitelist = getenv("E2E_POLICY_WHITELIST") or ""
e2e_policy_whitelist = stringy.split(whitelist, ", ")
e2e_policy_message_optional_chat = "For security reasons, OMEMO, OTR or PGP encryption is STRONGLY recommended for conversations on this server."
e2e_policy_message_required_chat = "For security reasons, OMEMO, OTR or PGP encryption is required for conversations on this server."
e2e_policy_message_optional_muc = "For security reasons, OMEMO, OTR or PGP encryption is STRONGLY recommended for MUC on this server."
e2e_policy_message_required_muc = "For security reasons, OMEMO, OTR or PGP encryption is required for MUC on this server."