From 1c93e1b74d773706a2e780458950231148ee0003 Mon Sep 17 00:00:00 2001 From: Debendra Oli Date: Tue, 19 Jul 2022 13:46:01 +0545 Subject: [PATCH] web: add support for brandingDataUrl (#1346) Closes: #1345 --- docker-compose.yml | 1 + web/rootfs/defaults/settings-config.js | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index b2d2274..80750c1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,6 +17,7 @@ services: - ANALYTICS_SCRIPT_URLS - ANALYTICS_WHITELISTED_EVENTS - AUDIO_QUALITY_OPUS_BITRATE + - BRANDING_DATA_URL - CALLSTATS_CUSTOM_SCRIPT_URL - CALLSTATS_ID - CALLSTATS_SECRET diff --git a/web/rootfs/defaults/settings-config.js b/web/rootfs/defaults/settings-config.js index 3890d65..8ea774c 100644 --- a/web/rootfs/defaults/settings-config.js +++ b/web/rootfs/defaults/settings-config.js @@ -281,12 +281,12 @@ config.prejoinConfig.enabled = {{ $ENABLE_PREJOIN_PAGE }}; // Hides the participant name editing field in the prejoin screen. config.prejoinConfig.hideDisplayName = {{ $HIDE_PREJOIN_DISPLAY_NAME }}; - + // List of buttons to hide from the extra join options dropdown on prejoin screen. {{ if .Env.HIDE_PREJOIN_EXTRA_BUTTONS -}} config.prejoinConfig.hideExtraJoinButtons = [ '{{ join "','" (splitList "," .Env.HIDE_PREJOIN_EXTRA_BUTTONS) }}' ]; {{ end -}} - + // Welcome page. config.enableWelcomePage = {{ $ENABLE_WELCOME_PAGE }}; @@ -326,6 +326,8 @@ config.transcribingEnabled = {{ $ENABLE_TRANSCRIPTIONS }}; {{ if .Env.DYNAMIC_BRANDING_URL -}} // External API url used to receive branding specific information. config.dynamicBrandingUrl = '{{ .Env.DYNAMIC_BRANDING_URL }}'; +{{ else if .Env.BRANDING_DATA_URL -}} +config.brandingDataUrl = '{{ .Env.BRANDING_DATA_URL }}'; {{ end -}} {{ if .Env.TOKEN_AUTH_URL -}}