Răsfoiți Sursa

web: allow configuring buttons in toolbar and pre-join screen

Prayag Singh 3 ani în urmă
părinte
comite
0be9c8f
3 a modificat fișierele cu 18 adăugiri și 0 ștergeri
  1. 2 0
      docker-compose.yml
  2. 6 0
      env.example
  3. 10 0
      web/rootfs/defaults/settings-config.js

+ 2 - 0
docker-compose.yml

@@ -76,6 +76,7 @@ services:
             - ETHERPAD_URL_BASE
             - GOOGLE_ANALYTICS_ID
             - GOOGLE_API_APP_CLIENT_ID
+            - HIDE_PREMEETING_BUTTONS
             - INVITE_SERVICE_URL
             - JICOFO_AUTH_USER
             - LETSENCRYPT_DOMAIN
@@ -104,6 +105,7 @@ services:
             - TESTING_CAP_SCREENSHARE_BITRATE
             - TESTING_OCTO_PROBABILITY
             - TOKEN_AUTH_URL
+            - TOOLBAR_BUTTONS
             - TZ
             - VIDEOQUALITY_BITRATE_H264_LOW
             - VIDEOQUALITY_BITRATE_H264_STANDARD

+ 6 - 0
env.example

@@ -406,3 +406,9 @@ RESTART_POLICY=unless-stopped
 # Optional properties for shutdown api
 #COLIBRI_REST_ENABLED=true
 #SHUTDOWN_REST_ENABLED=true
+
+# Configure toolbar buttons. Add the buttons name separated with comma(no spaces between comma)
+#TOOLBAR_BUTTONS=
+
+# Hide the buttons at pre-join screen. Add the buttons name separated with comma
+#HIDE_PREMEETING_BUTTONS=

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

@@ -364,3 +364,13 @@ config.disableReactions = {{ $DISABLE_REACTIONS }};
 
 // Polls
 config.disablePolls = {{ $DISABLE_POLLS }};
+
+// Configure toolbar buttons
+{{ if .Env.TOOLBAR_BUTTONS -}}
+config.toolbarButtons = [ '{{ join "','" (splitList "," .Env.TOOLBAR_BUTTONS) }}' ];
+{{ end -}}
+
+// Hides the buttons at pre-join screen
+{{ if .Env.HIDE_PREMEETING_BUTTONS -}}
+config.hiddenPremeetingButtons = [ '{{ join "','" (splitList "," .Env.HIDE_PREMEETING_BUTTONS) }}' ];
+{{ end -}}