Ver código fonte

jigasi: add toggle to enable REST shutdown

Daniel McAssey 1 ano atrás
pai
commit
b5b8ea28cd
2 arquivos alterados com 5 adições e 0 exclusões
  1. 1 0
      jigasi.yml
  2. 4 0
      jigasi/rootfs/defaults/sip-communicator.properties

+ 1 - 0
jigasi.yml

@@ -47,6 +47,7 @@ services:
             - GC_CLIENT_EMAIL
             - GC_CLIENT_ID
             - GC_CLIENT_CERT_URL
+            - SHUTDOWN_REST_ENABLED
             - SENTRY_DSN="${JIGASI_SENTRY_DSN:-0}"
             - SENTRY_ENVIRONMENT
             - SENTRY_RELEASE

+ 4 - 0
jigasi/rootfs/defaults/sip-communicator.properties

@@ -8,6 +8,7 @@
 {{ $XMPP_PORT := .Env.XMPP_PORT | default "5222" -}}
 {{ $XMPP_SERVER := .Env.XMPP_SERVER | default "xmpp.meet.jitsi" -}}
 {{ $XMPP_SERVERS := splitList "," $XMPP_SERVER -}}
+{{ $SHUTDOWN_REST_ENABLED := .Env.SHUTDOWN_REST_ENABLED | default "false" | toBool -}}
 {{ $DISABLE_SIP := .Env.JIGASI_DISABLE_SIP | default "false" | toBool -}}
 {{/* assign env from context, preserve during range when . is re-assigned */}}
 {{ $ENV := .Env -}}
@@ -20,6 +21,9 @@ net.java.sip.communicator.impl.neomedia.codec.audio.opus.encoder.COMPLEXITY=10
 # Disables packet logging
 net.java.sip.communicator.packetlogging.PACKET_LOGGING_ENABLED=false
 
+# Control REST Shutdown
+org.jitsi.jigasi.ENABLE_REST_SHUTDOWN={{ $SHUTDOWN_REST_ENABLED }}
+
 # SIP account
 net.java.sip.communicator.impl.protocol.sip.acc1=acc1
 {{ if .Env.JIGASI_SIP_SERVER }}