@@ -69,7 +69,7 @@ modules_enabled = {
69
69
" saslauth" ; -- Authentication for clients and servers. Recommended if you want to log in.
70
70
" tls" ; -- Add support for secure TLS on c2s/s2s connections
71
71
" disco" ; -- Service discovery
72
-
72
+ {{ if eq . Env . PROSODY_MODE " client " - }}
73
73
-- Not essential, but recommended
74
74
" private" ; -- Private XML storage (for room bookmarks, etc.)
75
75
" limits" ; -- Enable bandwidth limiting for XMPP connections
@@ -78,16 +78,19 @@ modules_enabled = {
78
78
-- "privacy"; -- Support privacy lists
79
79
-- "compression"; -- Stream compression (Debian: requires lua-zlib module to work)
80
80
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
+
81
85
-- Nice to have
82
86
" version" ; -- Replies to server version requests
83
87
" uptime" ; -- Report how long server has been running
84
88
" time" ; -- Let others know the time here on this server
89
+ {{ end - }}
85
90
" 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 - }}
91
94
-- HTTP modules
92
95
-- "bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
93
96
-- "http_files"; -- Serve static files from a directory over HTTP
0 commit comments