diff --git a/README.md b/README.md index e7d20ba..ac6b1d0 100644 --- a/README.md +++ b/README.md @@ -422,6 +422,7 @@ Variable | Description | Default value `JICOFO_COMPONENT_SECRET` | XMPP component password for Jicofo | s3cr37 `JICOFO_AUTH_USER` | XMPP user for Jicofo client connections | focus `JICOFO_AUTH_PASSWORD` | XMPP password for Jicofo client connections | passw0rd +`JICOFO_ENABLE_HEALTH_CHECKS` | Enable health checks inside Jicofo, allowing the use of the REST api to check Jicofo's status | false `JVB_AUTH_USER` | XMPP user for JVB MUC client connections | jvb `JVB_AUTH_PASSWORD` | XMPP password for JVB MUC client connections | passw0rd `JVB_STUN_SERVERS` | STUN servers used to discover the server's public IP | stun.l.google.com:19302, stun1.l.google.com:19302, stun2.l.google.com:19302 diff --git a/env.example b/env.example index 8db2889..4200b5b 100644 --- a/env.example +++ b/env.example @@ -228,6 +228,9 @@ JICOFO_AUTH_USER=focus # Base URL of Jicofo's reservation REST API #JICOFO_RESERVATION_REST_BASE_URL=http://reservation.example.com +# Enable Jicofo's health check REST API (http://:8888/about/health) +#JICOFO_ENABLE_HEALTH_CHECKS=true + # XMPP user for Jigasi MUC client connections JIGASI_XMPP_USER=jigasi diff --git a/jicofo/rootfs/defaults/sip-communicator.properties b/jicofo/rootfs/defaults/sip-communicator.properties index 6ac697a..c37bd2c 100644 --- a/jicofo/rootfs/defaults/sip-communicator.properties +++ b/jicofo/rootfs/defaults/sip-communicator.properties @@ -17,3 +17,7 @@ org.jitsi.jicofo.auth.URL=XMPP:{{ .Env.XMPP_DOMAIN }} {{ if .Env.JICOFO_RESERVATION_REST_BASE_URL }} org.jitsi.impl.reservation.rest.BASE_URL={{ .Env.JICOFO_RESERVATION_REST_BASE_URL }} {{ end }} + +{{ if .Env.JICOFO_ENABLE_HEALTH_CHECKS | default "0" | toBool }} +org.jitsi.jicofo.health.ENABLE_HEALTH_CHECKS=true +{{ end }}