From fa5ee327202dfaa26ffa6cd6b5f6eab51d70b24c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BC=D1=8F=D0=BD=20=D0=9C=D0=B8=D0=BD=D0=BA?= =?UTF-8?q?=D0=BE=D0=B2?= Date: Wed, 3 Aug 2022 10:55:31 +0300 Subject: [PATCH] fix: Fixes tenants in default configuration. --- config.js | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/config.js b/config.js index 171737eded..35a8365e05 100644 --- a/config.js +++ b/config.js @@ -1,10 +1,27 @@ -/* eslint-disable comma-dangle, no-unused-vars, no-var */ +/* eslint-disable comma-dangle, no-unused-vars, no-var, prefer-template, vars-on-top */ /* * NOTE: If you add a new option please remember to document it here: * https://jitsi.github.io/handbook/docs/dev-guide/dev-guide-configuration */ +var subdir = ''; +var subdomain = ''; + +if (subdomain) { + subdomain = subdomain.substr(0, subdomain.length - 1).split('.') + .join('_') + .toLowerCase() + '.'; +} + +// In case of no ssi provided by the webserver, use empty strings +if (subdir.startsWith('