22 lines
616 B
Lua
22 lines
616 B
Lua
if(ENV_DOMAIN_NAME)
|
|
then
|
|
VirtualHost (ENV_DOMAIN_NAME)
|
|
privileged_entities = {
|
|
["whatsapp"] = {
|
|
roster = "both";
|
|
message = "outgoing";
|
|
iq = {
|
|
["http://jabber.org/protocol/pubsub"] = "both";
|
|
["http://jabber.org/protocol/pubsub#owner"] = "set";
|
|
};
|
|
}
|
|
}
|
|
disco_items = {
|
|
{ "whatsapp", "Whatsapp gateway" };
|
|
}
|
|
Component ("u."..ENV_DOMAIN_NAME) "http_file_share"
|
|
Component ("pubsub."..ENV_DOMAIN_NAME) "pubsub"
|
|
Component "whatsapp"
|
|
component_secret = ENV_SLIDGE_SECRET or ""
|
|
modules_enabled = {"privilege"}
|
|
end
|