Kaynağa Gözat

jicofo: flag to use presence for bridge health checks (#1499)

Aaron van Meerten 2 yıl önce
ebeveyn
işleme
7d1bf8e
2 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 1 0
      docker-compose.yml
  2. 2 0
      jicofo/rootfs/defaults/jicofo.conf

+ 1 - 0
docker-compose.yml

@@ -280,6 +280,7 @@ services:
             - JICOFO_CONF_SINGLE_PARTICIPANT_TIMEOUT
             - JICOFO_ENABLE_HEALTH_CHECKS
             - JICOFO_ENABLE_REST
+            - JICOFO_HEALTH_CHECKS_USE_PRESENCE
             - JICOFO_OCTO_REGION
             - JIBRI_BREWERY_MUC
             - JIBRI_REQUEST_RETRIES

+ 2 - 0
jicofo/rootfs/defaults/jicofo.conf

@@ -6,6 +6,7 @@
 {{ $ENABLE_AUTO_LOGIN := .Env.ENABLE_AUTO_LOGIN | default "1" | toBool }}
 {{ $ENABLE_REST := .Env.JICOFO_ENABLE_REST | default "0" | toBool }}
 {{ $ENABLE_JVB_XMPP_SERVER := Env.ENABLE_JVB_XMPP_SERVER | default "0" | toBool }}
+{{ $HEALTH_CHECKS_USE_PRESENCE := .Env.JICOFO_HEALTH_CHECKS_USE_PRESENCE | default "0" | toBool }}
 {{ $JIBRI_BREWERY_MUC := .Env.JIBRI_BREWERY_MUC | default "jibribrewery" -}}
 {{ $JIGASI_BREWERY_MUC := .Env.JIGASI_BREWERY_MUC | default "jigasibrewery" -}}
 {{ $JVB_BREWERY_MUC := .Env.JVB_BREWERY_MUC | default "jvbbrewery" -}}
@@ -67,6 +68,7 @@ jicofo {
       {{ if .Env.JICOFO_ENABLE_BRIDGE_HEALTH_CHECKS }}
       health-checks {
         enabled = {{ .Env.JICOFO_ENABLE_BRIDGE_HEALTH_CHECKS | toBool }}
+        use-presence = {{ $HEALTH_CHECKS_USE_PRESENCE }}
       }
       {{ end }}