xmpp: add ability to customize the XMPP MUC domain

This commit is contained in:
Saúl Ibarra Corretgé 2018-04-28 17:42:37 +02:00
parent 9aa8fb7551
commit 822cca7d39
5 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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}"

View File

@ -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" \

View File

@ -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