Browse Source

xmpp: add ability to customize the XMPP MUC domain

Saúl Ibarra Corretgé 7 years ago
parent
commit
822cca7d39

+ 2 - 0
docker-compose.yml

@@ -14,6 +14,7 @@ services:
             - XMPP_DOMAIN
             - XMPP_AUTH_DOMAIN
             - XMPP_BOSH_URL_BASE
+            - XMPP_MUC_DOMAIN
             - TZ
         networks:
             meet.jitsi:
@@ -30,6 +31,7 @@ services:
         environment:
             - XMPP_DOMAIN
             - XMPP_AUTH_DOMAIN
+            - XMPP_MUC_DOMAIN
             - JICOFO_COMPONENT_SECRET
             - JVB_COMPONENT_SECRET
             - JICOFO_AUTH_USER

+ 3 - 0
env.example

@@ -14,6 +14,9 @@ XMPP_AUTH_DOMAIN=auth.meet.jitsi
 # XMPP BOSH URL base. You generally don't need to change this.
 XMPP_BOSH_URL_BASE=http://xmpp.meet.jitsi:5280
 
+# XMPP domain for the MUC. You generally don't need to change this.
+XMPP_MUC_DOMAIN=muc.meet.jitsi
+
 # XMPP component password for Jitsi Videobridge.
 JVB_COMPONENT_SECRET=s3cr3t
 

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

@@ -21,7 +21,7 @@ VirtualHost "${XMPP_AUTH_DOMAIN}"
     }
     authentication = "internal_plain"
 
-Component "conference.${XMPP_DOMAIN}" "muc"
+Component "${XMPP_MUC_DOMAIN}" "muc"
     storage = "null"
 
 Component "jitsi-videobridge.${XMPP_DOMAIN}"

+ 1 - 0
prosody/rootfs/etc/cont-init.d/10-config

@@ -12,6 +12,7 @@ if [[ ! -f $PROSODY_CFG ]]; then
     sed -i \
         -e "s,\${XMPP_DOMAIN},$XMPP_DOMAIN,g" \
         -e "s,\${XMPP_AUTH_DOMAIN},$XMPP_AUTH_DOMAIN,g" \
+        -e "s,\${XMPP_MUC_DOMAIN},$XMPP_MUC_DOMAIN,g" \
         -e "s,\${JICOFO_AUTH_USER},$JICOFO_AUTH_USER,g" \
         -e "s,\${JICOFO_COMPONENT_SECRET},$JICOFO_COMPONENT_SECRET,g" \
         -e "s,\${JVB_COMPONENT_SECRET},$JVB_COMPONENT_SECRET,g" \

+ 1 - 0
web/rootfs/etc/cont-init.d/10-config

@@ -25,6 +25,7 @@ if [[ ! -f /config/config.js ]]; then
     sed -i \
         -e "s#jitsi-meet.example.com#$XMPP_DOMAIN#g" \
         -e "s#bosh:.*#bosh: '/http-bind',#" \
+        -e "s#muc:.*#muc: '${XMPP_MUC_DOMAIN}',#" \
         -e "s#// focusUserJid:.*#focusUserJid: '${JICOFO_AUTH_USER}@${XMPP_AUTH_DOMAIN}',#" \
         /config/config.js
 fi