jvb: add ability to configure the shutdown API

pull/1139/head
Артем 3 years ago committed by GitHub
parent 5dcf7b483d
commit 192a6233aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docker-compose.yml
  2. 4
      env.example
  3. 2
      examples/traefik-v2/docker-compose.yml
  4. 2
      examples/traefik/docker-compose.yml
  5. 10
      jvb/rootfs/defaults/jvb.conf

@ -282,6 +282,8 @@ services:
- SENTRY_DSN="${JVB_SENTRY_DSN:-0}"
- SENTRY_ENVIRONMENT
- SENTRY_RELEASE
- COLIBRI_REST_ENABLED
- SHUTDOWN_REST_ENABLED
- TZ
- XMPP_AUTH_DOMAIN
- XMPP_INTERNAL_MUC_DOMAIN

@ -403,3 +403,7 @@ RESTART_POLICY=unless-stopped
# Optional release info to filter events
#SENTRY_RELEASE=1.0.0
# Optional properties for shutdown api
#COLIBRI_REST_ENABLED=true
#SHUTDOWN_REST_ENABLED=true

@ -252,6 +252,8 @@ services:
- JVB_WS_DOMAIN
- JVB_WS_SERVER_ID
- PUBLIC_URL
- COLIBRI_REST_ENABLED
- SHUTDOWN_REST_ENABLED
- TZ
depends_on:
- prosody

@ -166,6 +166,8 @@ services:
- JVB_TCP_PORT
- JVB_STUN_SERVERS
- JVB_ENABLE_APIS
- COLIBRI_REST_ENABLED
- SHUTDOWN_REST_ENABLED
- TZ
depends_on:
- prosody

@ -5,6 +5,8 @@
{{ $PUBLIC_URL_DOMAIN := .Env.PUBLIC_URL | default "https://localhost:8443" | trimPrefix "https://" | trimSuffix "/" -}}
{{ $WS_DOMAIN := .Env.JVB_WS_DOMAIN | default $PUBLIC_URL_DOMAIN -}}
{{ $WS_SERVER_ID := .Env.JVB_WS_SERVER_ID | default .Env.LOCAL_ADDRESS -}}
{{ $COLIBRI_REST_ENABLED := .Env.COLIBRI_REST_ENABLED | default "false" | toBool }}
{{ $SHUTDOWN_REST_ENABLED := .Env.SHUTDOWN_REST_ENABLED | default "false" | toBool }}
videobridge {
ice {
@ -33,6 +35,14 @@ videobridge {
}
}
}
rest {
enabled = {{ $COLIBRI_REST_ENABLED }}
}
}
rest {
shutdown {
enabled = {{ $SHUTDOWN_REST_ENABLED }}
}
}
stats {
enabled = true

Loading…
Cancel
Save