diff --git a/web/rootfs/defaults/system-config.js b/web/rootfs/defaults/system-config.js index d8e724e..a1a4ff6 100644 --- a/web/rootfs/defaults/system-config.js +++ b/web/rootfs/defaults/system-config.js @@ -20,11 +20,15 @@ config.hosts.domain = '{{ $XMPP_DOMAIN }}'; config.focusUserJid = '{{$JICOFO_AUTH_USER}}@{{$XMPP_AUTH_DOMAIN}}'; {{ if $ENABLE_SUBDOMAINS -}} +var subdir = ''; var subdomain = ""; +if (subdir.startsWith('http-pre-bind'; +config.externalConnectUrl = '/' + subdir + 'http-pre-bind'; {{ else -}} config.externalConnectUrl = '/http-pre-bind'; {{ end -}}