From bb17a29a20b9275a9dbfe21f9bbd8e6a5b29cd40 Mon Sep 17 00:00:00 2001 From: Aaron van Meerten Date: Tue, 22 Oct 2024 12:52:42 -0500 Subject: [PATCH] feat(prosody): enable muc_max_participants in lobby component (#1950) --- prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua b/prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua index aded22e..66b37b5 100644 --- a/prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua +++ b/prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua @@ -413,13 +413,19 @@ Component "lobby.{{ $XMPP_DOMAIN }}" "muc" muc_room_cache_size = 10000 muc_room_locking = false muc_room_default_public_jids = true + {{- if .Env.MAX_PARTICIPANTS }} + muc_max_occupants = "{{ .Env.MAX_PARTICIPANTS }}" + {{- end }} modules_enabled = { - {{ if $ENABLE_RATE_LIMITS -}} + {{- if $ENABLE_RATE_LIMITS }} "muc_rate_limit"; - {{ end -}} - {{ if .Env.XMPP_LOBBY_MUC_MODULES -}} + {{- end }} + {{- if .Env.MAX_PARTICIPANTS }} + "muc_max_occupants"; + {{- end }} + {{- if .Env.XMPP_LOBBY_MUC_MODULES }} "{{ join "\";\n \"" (splitList "," .Env.XMPP_LOBBY_MUC_MODULES | compact) }}"; - {{ end -}} + {{- end }} } {{ end }}