diff --git a/docker-compose.yml b/docker-compose.yml index cdfe48d..27a5c06 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/env.example b/env.example index 06b4ffd..0a1d4c4 100644 --- a/env.example +++ b/env.example @@ -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 diff --git a/examples/traefik-v2/docker-compose.yml b/examples/traefik-v2/docker-compose.yml index 7326a42..c63f6dd 100644 --- a/examples/traefik-v2/docker-compose.yml +++ b/examples/traefik-v2/docker-compose.yml @@ -252,6 +252,8 @@ services: - JVB_WS_DOMAIN - JVB_WS_SERVER_ID - PUBLIC_URL + - COLIBRI_REST_ENABLED + - SHUTDOWN_REST_ENABLED - TZ depends_on: - prosody diff --git a/examples/traefik/docker-compose.yml b/examples/traefik/docker-compose.yml index 4848754..3a986e3 100644 --- a/examples/traefik/docker-compose.yml +++ b/examples/traefik/docker-compose.yml @@ -166,6 +166,8 @@ services: - JVB_TCP_PORT - JVB_STUN_SERVERS - JVB_ENABLE_APIS + - COLIBRI_REST_ENABLED + - SHUTDOWN_REST_ENABLED - TZ depends_on: - prosody diff --git a/jvb/rootfs/defaults/jvb.conf b/jvb/rootfs/defaults/jvb.conf index cf16561..900565d 100644 --- a/jvb/rootfs/defaults/jvb.conf +++ b/jvb/rootfs/defaults/jvb.conf @@ -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