web: use PUBLIC_URL for etherpaad base and BOSH URLs

pull/318/head
Saúl Ibarra Corretgé 5 years ago
parent 264df049c8
commit 5e6faced4f
  1. 4
      web/rootfs/etc/cont-init.d/10-config

@ -73,7 +73,7 @@ if [[ ! -f /config/config.js ]]; then
cp /defaults/config.js /config/config.js
sed -i \
-e "s#jitsi-meet.example.com#$XMPP_DOMAIN#g" \
-e "s#bosh:.*#bosh: '/http-bind',#" \
-e "s#bosh:.*#bosh: '${PUBLIC_URL}/http-bind',#" \
-e "s#muc:.*#muc: '${XMPP_MUC_DOMAIN}',#" \
-e "s#// focusUserJid:.*#focusUserJid: '${JICOFO_AUTH_USER}@${XMPP_AUTH_DOMAIN}',#" \
/config/config.js
@ -100,7 +100,7 @@ if [[ ! -f /config/config.js ]]; then
if [[ ! -z "${ETHERPAD_URL_BASE}" && -z "$(grep -om1 'etherpad_base:' /config/config.js)" ]]; then
sed -i \
-e "/enableWelcomePage/a\ etherpad_base: '/etherpad/p/'," \
-e "/enableWelcomePage/a\ etherpad_base: '${PUBLIC_URL}/etherpad/p/'," \
/config/config.js
fi

Loading…
Cancel
Save