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"] = "both"; }; } } disco_items = { { "whatsapp", "Whatsapp gateway" }; } Component ("u."..ENV_DOMAIN_NAME, "http_file_share") Component "whatsapp" component_secret = ENV_SLIDGE_SECRET or "" modules_enabled = {"privilege"} end