Use an unaltered config.js file

Make all the necessary changes outside, setting the bosh URL
in this case.
This commit is contained in:
Saúl Ibarra Corretgé 2018-03-14 11:37:09 +01:00
parent ee08da5640
commit c6cc67b68d
2 changed files with 16 additions and 13 deletions

View File

@ -38,7 +38,7 @@ var config = {
},
// BOSH URL. FIXME: use XEP-0156 to discover it.
bosh: '/http-bind',
bosh: '//jitsi-meet.example.com/http-bind',
// The name of client node advertised in XEP-0115 'c' stanza
clientNode: 'http://jitsi.org/jitsimeet',

View File

@ -22,5 +22,8 @@ fi
if [[ ! -f /config/config.js ]]; then
cp /defaults/config.js /config/config.js
sed -i "s/jitsi-meet.example.com/$XMPP_DOMAIN/g" /config/config.js
sed -i \
-e "s#jitsi-meet.example.com#$XMPP_DOMAIN#g" \
-e "s#bosh:.*#bosh: '/http-bind',#" \
/config/config.js
fi