From 4b1c11c41232ea284423006f59edcbf39e816a8b Mon Sep 17 00:00:00 2001 From: shaula Date: Sun, 14 Jan 2018 00:11:38 +0000 Subject: [PATCH] * adding multi-user chat support (XEP-0045) --- conf.d/01-modules.cfg.lua | 1 + conf.d/04-vhost.cfg.lua | 6 ++++++ readme.md | 7 ++----- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/conf.d/01-modules.cfg.lua b/conf.d/01-modules.cfg.lua index 5956d26..62636ca 100644 --- a/conf.d/01-modules.cfg.lua +++ b/conf.d/01-modules.cfg.lua @@ -23,6 +23,7 @@ modules_enabled = { "ping"; -- Replies to XMPP pings with pongs "pep"; -- Enables users to publish their mood, activity, playing music and more "register"; -- Allow users to register on this server using a client and change passwords + --"muc"; -- [Loaded as component, therefore commented here] Multi-user chats (XEP-0045) -- Admin interfaces "admin_adhoc"; -- Allows administration via an XMPP client that supports ad-hoc commands diff --git a/conf.d/04-vhost.cfg.lua b/conf.d/04-vhost.cfg.lua index d9efcac..f0089e8 100644 --- a/conf.d/04-vhost.cfg.lua +++ b/conf.d/04-vhost.cfg.lua @@ -16,3 +16,9 @@ Component ("proxy." .. domain) "proxy65" -- Set up a http file upload because proxy65 is not working in muc -- Component (domain) "http_upload" -- is set-up via modules_enabled + +Component ("muc." .. domain) "muc" + name = "Prosody Chatrooms" + restrict_room_creation = false + max_history_messages = 20 + diff --git a/readme.md b/readme.md index e83e8c6..e856559 100644 --- a/readme.md +++ b/readme.md @@ -18,6 +18,7 @@ While Conversations got everything set-up out-of-the-box, Gajim was used with th * SQLite message store * Configured file upload and image sharing * Allows registration +* Multi-user chats ## Requirements @@ -60,7 +61,7 @@ version: '2' services: server: - image: shaula/rpi-prosody:0.9.11 + image: shaula/rpi-prosody:0.10 ports: - "5000:5000" - "5222:5222" @@ -105,7 +106,3 @@ log = { }; ``` -## Missing - -* [Multi-User-Chats](https://prosody.im/doc/modules/mod_muc) (MUC) is not yet configured -* ??