jvb: add ability to configure the shutdown API

This commit is contained in:
Артем
2021-10-21 15:21:29 +03:00
committed by GitHub
parent 5dcf7b483d
commit 192a6233aa
5 changed files with 20 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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

View File

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