From cb853ed32faca9d5486147971715e6e04c46ea1f Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 13 May 2020 12:20:25 +0100 Subject: [PATCH] Restrict general chat to local users --- ansible/files/prosody.cfg.lua | 5 ++--- ansible/tasks/prosody.yml | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ansible/files/prosody.cfg.lua b/ansible/files/prosody.cfg.lua index 556f9c0..d23c109 100644 --- a/ansible/files/prosody.cfg.lua +++ b/ansible/files/prosody.cfg.lua @@ -147,19 +147,18 @@ VirtualHost (DOMAIN) Component ("groups."..DOMAIN) "muc" modules_enabled = { "muc_mam"; + "muc_local_only"; "vcard_muc"; "muc_defaults"; } restrict_room_creation = "local" + muc_local_only = { "general@"..DOMAIN } muc_room_default_persistent = true muc_room_default_allow_member_invites = true default_mucs = { { jid_node = "general"; - affiliations = { - owner = { "admin@"..DOMAIN }; - }; config = { name = "General Chat"; description = "Welcome to "..DOMAIN.." general chat!"; diff --git a/ansible/tasks/prosody.yml b/ansible/tasks/prosody.yml index e2da573..8485d15 100644 --- a/ansible/tasks/prosody.yml +++ b/ansible/tasks/prosody.yml @@ -88,6 +88,7 @@ - mod_bookmarks - mod_default_bookmarks - mod_muc_defaults + - mod_muc_local_only - mod_firewall - mod_turncredentials