From 7c7a43a04570c974b2f8a35ec8f61829d7b0f1ea Mon Sep 17 00:00:00 2001 From: Rhys <66695742+RhysRdm@users.noreply.github.com> Date: Thu, 18 Aug 2022 12:05:25 +0100 Subject: [PATCH] prosody: add ability to configure max occupants --- docker-compose.yml | 1 + prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 580530c..d392b32 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -208,6 +208,7 @@ services: - LDAP_START_TLS - LDAP_URL - LDAP_USE_TLS + - MAX_PARTICIPANTS - PROSODY_RESERVATION_ENABLED - PROSODY_RESERVATION_REST_BASE_URL - PUBLIC_URL diff --git a/prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua b/prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua index d8bf37f..d92cbfd 100644 --- a/prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua +++ b/prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua @@ -241,6 +241,9 @@ Component "{{ $XMPP_MUC_DOMAIN }}" "muc" {{ if $ENABLE_SUBDOMAINS -}} "muc_domain_mapper"; {{ end -}} + {{ if .Env.MAX_PARTICIPANTS }} + "muc_max_occupants"; + {{ end } } muc_room_cache_size = 1000 muc_room_locking = false @@ -248,6 +251,10 @@ Component "{{ $XMPP_MUC_DOMAIN }}" "muc" {{ if .Env.XMPP_MUC_CONFIGURATION -}} {{ join "\n" (splitList "," .Env.XMPP_MUC_CONFIGURATION) }} {{ end -}} + {{ if .Env.MAX_PARTICIPANTS }} + muc_access_whitelist = { "{{ .Env.JICOFO_AUTH_USER }}@{{ .Env.XMPP_AUTH_DOMAIN }}" } + muc_max_occupants = "{{ .Env.MAX_PARTICIPANTS }}" + {{ end }} Component "focus.{{ $XMPP_DOMAIN }}" "client_proxy" target_address = "{{ $JICOFO_AUTH_USER }}@{{ $XMPP_AUTH_DOMAIN }}"