From 55078b62f4347bc328590b4a7a2a0b8565ccda10 Mon Sep 17 00:00:00 2001 From: Aaron van Meerten Date: Wed, 29 Mar 2023 10:06:35 -0500 Subject: [PATCH] websocket keepalive --- docker-compose.yml | 1 + web/rootfs/defaults/system-config.js | 3 +++ 2 files changed, 4 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index f7b9c78..7f24641 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -143,6 +143,7 @@ services: - VIDEOQUALITY_BITRATE_VP9_HIGH - VIDEOQUALITY_ENFORCE_PREFERRED_CODEC - VIDEOQUALITY_PREFERRED_CODEC + - WEBSOCKET_KEEPALIVE_URL - XMPP_AUTH_DOMAIN - XMPP_BOSH_URL_BASE - XMPP_DOMAIN diff --git a/web/rootfs/defaults/system-config.js b/web/rootfs/defaults/system-config.js index 16deab7..be4630d 100644 --- a/web/rootfs/defaults/system-config.js +++ b/web/rootfs/defaults/system-config.js @@ -53,6 +53,9 @@ config.websocket = 'wss://{{ $PUBLIC_URL_DOMAIN }}/' + subdir + 'xmpp-websocket' {{ else -}} config.websocket = 'wss://{{ $PUBLIC_URL_DOMAIN }}/xmpp-websocket'; {{ end -}} +{{ if .Env.WEBSOCKET_KEEPALIVE_URL -}} +config.websocketKeepAliveUrl = '{{ .Env.WEBSOCKET_KEEPALIVE_URL }}'; +{{ end -}} {{ end -}} {{ if $CONFIG_EXTERNAL_CONNECT -}}