Browse Source

web: use PUBLIC_URL for etherpaad base and BOSH URLs

Saúl Ibarra Corretgé 5 years ago
parent
commit
5e6faced4f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      web/rootfs/etc/cont-init.d/10-config

+ 2 - 2
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