xmpp: add ability to customize the jicofo auth user

pull/3/head
Saúl Ibarra Corretgé 7 years ago
parent 0bbe673cc3
commit 84332c9527
  1. 2
      docker-compose.yml
  2. 2
      prosody/rootfs/defaults/conf.d/jitsi-meet.cfg.lua
  3. 1
      prosody/rootfs/etc/cont-init.d/10-config
  4. 1
      web/rootfs/etc/cont-init.d/10-config

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

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

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

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

Loading…
Cancel
Save