From ceb4a51a1ebfa92dabdd8eee94216e29da6dc7fb Mon Sep 17 00:00:00 2001 From: damencho Date: Mon, 23 Sep 2024 20:12:02 -0500 Subject: [PATCH] feat(prosody): Skip some modules for prosody-jvb. --- prosody/rootfs/defaults/prosody.cfg.lua | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/prosody/rootfs/defaults/prosody.cfg.lua b/prosody/rootfs/defaults/prosody.cfg.lua index 3d1b80c..274b32d 100644 --- a/prosody/rootfs/defaults/prosody.cfg.lua +++ b/prosody/rootfs/defaults/prosody.cfg.lua @@ -69,7 +69,7 @@ modules_enabled = { "saslauth"; -- Authentication for clients and servers. Recommended if you want to log in. "tls"; -- Add support for secure TLS on c2s/s2s connections "disco"; -- Service discovery - +{{ if eq .Env.PROSODY_MODE "client" -}} -- Not essential, but recommended "private"; -- Private XML storage (for room bookmarks, etc.) "limits"; -- Enable bandwidth limiting for XMPP connections @@ -78,16 +78,19 @@ modules_enabled = { --"privacy"; -- Support privacy lists --"compression"; -- Stream compression (Debian: requires lua-zlib module to work) + -- Admin interfaces + "admin_adhoc"; -- Allows administration via an XMPP client that supports ad-hoc commands + --"admin_telnet"; -- Opens telnet console interface on localhost port 5582 + -- Nice to have "version"; -- Replies to server version requests "uptime"; -- Report how long server has been running "time"; -- Let others know the time here on this server +{{ end -}} "ping"; -- Replies to XMPP pings with pongs - - -- Admin interfaces - "admin_adhoc"; -- Allows administration via an XMPP client that supports ad-hoc commands - --"admin_telnet"; -- Opens telnet console interface on localhost port 5582 - +{{ if eq .Env.PROSODY_MODE "visitors" -}} + "limits"; -- Enable bandwidth limiting for XMPP connections +{{ end -}} -- HTTP modules --"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP" --"http_files"; -- Serve static files from a directory over HTTP