2
0
Эх сурвалжийг харах

web: configure brandingDataUrl with env variables

Ludovic Muller 4 жил өмнө
parent
commit
087f024fcb

+ 1 - 0
docker-compose.yml

@@ -24,6 +24,7 @@ services:
             - ANALYTICS_SCRIPT_URLS
             - ANALYTICS_WHITELISTED_EVENTS
             - BRIDGE_CHANNEL
+            - BRANDING_DATA_URL
             - CALLSTATS_CUSTOM_SCRIPT_URL
             - CALLSTATS_ID
             - CALLSTATS_SECRET

+ 5 - 0
web/rootfs/defaults/settings-config.js

@@ -252,6 +252,11 @@ config.useStunTurn = {{ $USE_STUN_TURN }};
 // Transcriptions (subtitles and buttons can be configured in interface_config)
 config.transcribingEnabled = {{ $ENABLE_TRANSCRIPTIONS }};
 
+{{ if .Env.BRANDING_DATA_URL -}}
+// External API url used to receive branding specific information.
+config.brandingDataUrl = '{{ .Env.BRANDING_DATA_URL }}';
+{{ end -}}
+
 
 // Deployment information.
 //