Add the ability to configure the application name.

pull/1957/head
Benoit Sautel 4 weeks ago
parent af83a97125
commit e48aac1c30
  1. 1
      docker-compose.yml
  2. 3
      web/rootfs/defaults/interface-config.js
  3. 1
      web/rootfs/etc/cont-init.d/10-config

@ -19,6 +19,7 @@ services:
- AMPLITUDE_ID - AMPLITUDE_ID
- ANALYTICS_SCRIPT_URLS - ANALYTICS_SCRIPT_URLS
- ANALYTICS_WHITELISTED_EVENTS - ANALYTICS_WHITELISTED_EVENTS
- APP_NAME
- AUDIO_QUALITY_OPUS_BITRATE - AUDIO_QUALITY_OPUS_BITRATE
- AUTO_CAPTION_ON_RECORD - AUTO_CAPTION_ON_RECORD
- BRANDING_DATA_URL - BRANDING_DATA_URL

@ -0,0 +1,3 @@
{{ if .Env.APP_NAME -}}
interfaceConfig.APP_NAME = '{{ .Env.APP_NAME | js }}';
{{ end -}}

@ -126,6 +126,7 @@ if [[ -f /config/custom-config.js ]]; then
fi fi
cp /defaults/interface_config.js /config/interface_config.js cp /defaults/interface_config.js /config/interface_config.js
tpl /defaults/interface-config.js >> /config/interface_config.js
if [[ -f /config/custom-interface_config.js ]]; then if [[ -f /config/custom-interface_config.js ]]; then
cat /config/custom-interface_config.js >> /config/interface_config.js cat /config/custom-interface_config.js >> /config/interface_config.js
fi fi

Loading…
Cancel
Save