Skip to content

Commit 3ef2221

Browse files
committed
jvb: add ability to set the WS domain with an env var
1 parent 79d2601 commit 3ef2221

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ services:
211211
- JVB_TCP_MAPPED_PORT
212212
- JVB_STUN_SERVERS
213213
- JVB_ENABLE_APIS
214+
- JVB_WS_DOMAIN
214215
- JVB_WS_SERVER_ID
215216
- PUBLIC_URL
216217
- TZ

jvb/rootfs/defaults/sip-communicator.properties

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ org.jitsi.videobridge.ENABLE_STATISTICS=true
2626
org.jitsi.videobridge.STATISTICS_TRANSPORT=muc
2727
org.jitsi.videobridge.STATISTICS_INTERVAL=5000
2828

29-
{{ $WS_DOMAIN := .Env.PUBLIC_URL | default "https://localhost:8443" | trimPrefix "https://" | trimSuffix "/" -}}
30-
{{ $WS_SERVER_ID := .Env.JVB_WS_SERVER_ID | default .Env.LOCAL_ADDRESS }}
29+
{{ $PUBLIC_URL_DOMAIN := .Env.PUBLIC_URL | default "https://localhost:8443" | trimPrefix "https://" | trimSuffix "/" -}}
30+
{{ $WS_DOMAIN := .Env.JVB_WS_DOMAIN | default $PUBLIC_URL_DOMAIN -}}
31+
{{ $WS_SERVER_ID := .Env.JVB_WS_SERVER_ID | default .Env.LOCAL_ADDRESS -}}
3132

3233
org.jitsi.videobridge.rest.COLIBRI_WS_DISABLE=false
3334
org.jitsi.videobridge.rest.jetty.port=9090

0 commit comments

Comments
 (0)