xmpp: add ability to customize the jicofo auth user

This commit is contained in:
Saúl Ibarra Corretgé 2018-04-26 08:38:59 +02:00
parent 0bbe673cc3
commit 84332c9527
4 changed files with 5 additions and 1 deletions

View File

@ -10,7 +10,9 @@ services:
volumes:
- ${CONFIG}/meet:/config
environment:
- JICOFO_AUTH_USER
- XMPP_DOMAIN
- XMPP_AUTH_DOMAIN
- XMPP_BOSH_URL_BASE=http://xmpp.meet.jitsi:5280
- TZ
networks:

View File

@ -1,4 +1,4 @@
admins = { "focus@${XMPP_AUTH_DOMAIN}" }
admins = { "${JICOFO_AUTH_USER}@${XMPP_AUTH_DOMAIN}" }
VirtualHost "${XMPP_DOMAIN}"
authentication = "anonymous"

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,\${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" \
/config/conf.d/jitsi-meet.cfg.lua

View File

@ -25,5 +25,6 @@ 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#// focusUserJid:.*#focusUserJid: '${JICOFO_AUTH_USER}@${XMPP_AUTH_DOMAIN}',#" \
/config/config.js
fi