瀏覽代碼

prosody: add ability to configure MUC modules through ENV variables

This allows for configuring how MUC modules can be used.

Closes: https://github.com/jitsi/docker-jitsi-meet/issues/1310
Lazaro Herrera 2 年之前
父節點
當前提交
ea378598c0
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 1 0
      docker-compose.yml
  2. 3 0
      prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua

+ 1 - 0
docker-compose.yml

@@ -218,6 +218,7 @@ services:
             - XMPP_INTERNAL_MUC_DOMAIN
             - XMPP_MODULES
             - XMPP_MUC_MODULES
+            - XMPP_MUC_CONFIGURATION
             - XMPP_INTERNAL_MUC_MODULES
             - XMPP_RECORDER_DOMAIN
             - XMPP_PORT

+ 3 - 0
prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua

@@ -243,6 +243,9 @@ Component "{{ $XMPP_MUC_DOMAIN }}" "muc"
     muc_room_cache_size = 1000
     muc_room_locking = false
     muc_room_default_public_jids = true
+    {{ if .Env.XMPP_MUC_CONFIGURATION -}}
+    "{{ join "\"\n\"" (splitList "," .Env.XMPP_MUC_CONFIGURATION) }}";
+    {{ end -}}
 
 Component "focus.{{ $XMPP_DOMAIN }}" "client_proxy"
     target_address = "{{ $JICOFO_AUTH_USER }}@{{ $XMPP_AUTH_DOMAIN }}"