Remove unnecessary modules and properties (#1697)

* Only enable dialback when s2s is enabled.
* Remove vcard, pep, register modules.
* Only set smacks properties when xmpp ws is enabled.
pull/1698/head
bgrozev 11 months ago committed by GitHub
parent 2915176b2e
commit 80e4ee6341
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua
  2. 10
      prosody/rootfs/defaults/prosody.cfg.lua

@ -117,6 +117,13 @@ asap_accepted_audiences = { "{{ join "\",\"" (splitList "," .Env.JWT_ACCEPTED_AU
consider_bosh_secure = true;
consider_websocket_secure = true;
{{ if $ENABLE_XMPP_WEBSOCKET }}
smacks_max_unacked_stanzas = 5;
smacks_hibernation_time = 60;
smacks_max_hibernated_sessions = 1;
smacks_max_old_sessions = 1;
{{ end }}
{{ if $ENABLE_JAAS_COMPONENTS }}
VirtualHost "jigasi.meet.jitsi"
modules_enabled = {

@ -63,12 +63,10 @@ modules_enabled = {
"roster"; -- Allow users to have a roster. Recommended ;)
"saslauth"; -- Authentication for clients and servers. Recommended if you want to log in.
"tls"; -- Add support for secure TLS on c2s/s2s connections
"dialback"; -- s2s dialback support
"disco"; -- Service discovery
-- Not essential, but recommended
"private"; -- Private XML storage (for room bookmarks, etc.)
"vcard"; -- Allow users to set vCards
"limits"; -- Enable bandwidth limiting for XMPP connections
-- These are commented by default as they have a performance impact
@ -80,8 +78,6 @@ modules_enabled = {
"uptime"; -- Report how long server has been running
"time"; -- Let others know the time here on this server
"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
-- Admin interfaces
"admin_adhoc"; -- Allows administration via an XMPP client that supports ad-hoc commands
@ -104,6 +100,7 @@ modules_enabled = {
"secure_interfaces";
{{ end -}}
{{ if $ENABLE_S2S -}}
"dialback"; -- s2s dialback support
"s2s_bidi";
"certs_s2soutinjection";
"s2sout_override";
@ -305,9 +302,4 @@ http_interfaces = { "*" }
data_path = "/config/data"
smacks_max_unacked_stanzas = 5;
smacks_hibernation_time = 60;
smacks_max_hibernated_sessions = 1;
smacks_max_old_sessions = 1;
Include "conf.d/*.cfg.lua"

Loading…
Cancel
Save