From dc5b6a1ef558dc2c9241e37ace9df3d035a62605 Mon Sep 17 00:00:00 2001 From: Debendra Oli Date: Mon, 12 Sep 2022 23:00:24 +0545 Subject: [PATCH] fix: multi tenant setup (#1401) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: multi tenant setup refs: https://github.com/jitsi/jitsi-meet/commit/fa5ee327202dfaa26ffa6cd6b5f6eab51d70b24c https://community.jitsi.org/t/subdomain-not-working-on-docker-conatiner/116967/17 * refactor: lint * squash: Fixes extra space. Co-authored-by: Дамян Минков --- web/rootfs/defaults/system-config.js | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) 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 -}}