Skip to content

Commit ceb4a51

Browse files
committed
feat(prosody): Skip some modules for prosody-jvb.
1 parent e7786d5 commit ceb4a51

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

prosody/rootfs/defaults/prosody.cfg.lua

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ modules_enabled = {
6969
"saslauth"; -- Authentication for clients and servers. Recommended if you want to log in.
7070
"tls"; -- Add support for secure TLS on c2s/s2s connections
7171
"disco"; -- Service discovery
72-
72+
{{ if eq .Env.PROSODY_MODE "client" -}}
7373
-- Not essential, but recommended
7474
"private"; -- Private XML storage (for room bookmarks, etc.)
7575
"limits"; -- Enable bandwidth limiting for XMPP connections
@@ -78,16 +78,19 @@ modules_enabled = {
7878
--"privacy"; -- Support privacy lists
7979
--"compression"; -- Stream compression (Debian: requires lua-zlib module to work)
8080

81+
-- Admin interfaces
82+
"admin_adhoc"; -- Allows administration via an XMPP client that supports ad-hoc commands
83+
--"admin_telnet"; -- Opens telnet console interface on localhost port 5582
84+
8185
-- Nice to have
8286
"version"; -- Replies to server version requests
8387
"uptime"; -- Report how long server has been running
8488
"time"; -- Let others know the time here on this server
89+
{{ end -}}
8590
"ping"; -- Replies to XMPP pings with pongs
86-
87-
-- Admin interfaces
88-
"admin_adhoc"; -- Allows administration via an XMPP client that supports ad-hoc commands
89-
--"admin_telnet"; -- Opens telnet console interface on localhost port 5582
90-
91+
{{ if eq .Env.PROSODY_MODE "visitors" -}}
92+
"limits"; -- Enable bandwidth limiting for XMPP connections
93+
{{ end -}}
9194
-- HTTP modules
9295
--"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
9396
--"http_files"; -- Serve static files from a directory over HTTP

0 commit comments

Comments
 (0)