From d045a71a27f3b23dfb639edc08bd1ba7b499d591 Mon Sep 17 00:00:00 2001 From: Aaron van Meerten Date: Tue, 12 Nov 2024 15:44:52 -0600 Subject: [PATCH] feat(web): allow comment at the top of config.js to be overridden --- web/rootfs/defaults/system-config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/rootfs/defaults/system-config.js b/web/rootfs/defaults/system-config.js index a4ce58ca39..04ac8f20c9 100644 --- a/web/rootfs/defaults/system-config.js +++ b/web/rootfs/defaults/system-config.js @@ -1,3 +1,4 @@ +{{ $CONFIG_PREFIX := .Env.WEB_CONFIG_PREFIX | default "// Jitsi Meet configuration.\n" -}} {{ $BOSH_RELATIVE := .Env.BOSH_RELATIVE | default "false" | toBool -}} {{ $ENABLE_AUTH := .Env.ENABLE_AUTH | default "false" | toBool -}} {{ $ENABLE_AUTH_DOMAIN := .Env.ENABLE_AUTH_DOMAIN | default "true" | toBool -}} @@ -12,7 +13,7 @@ {{ $XMPP_MUC_DOMAIN_PREFIX := (split "." $XMPP_MUC_DOMAIN)._0 -}} {{ $JVB_PREFER_SCTP := .Env.JVB_PREFER_SCTP | default "1" | toBool -}} -// Jitsi Meet configuration. +{{ join "\n" (splitList "\\n" $CONFIG_PREFIX) }} var config = {}; config.hosts = {};