From 8800e58afd7d7c27efc3a8c98c2944d5835cc435 Mon Sep 17 00:00:00 2001
From: Philipp Memmel <philipp.memmel@thg.muenchen.musin.de>
Date: Wed, 7 Apr 2021 22:44:27 +0200
Subject: [PATCH] consider turn-stun-servers.xml overlay config in
 /etc/bigbluebutton

---
 bigbluebutton-config/bin/bbb-conf | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bigbluebutton-config/bin/bbb-conf b/bigbluebutton-config/bin/bbb-conf
index 442d044b42..b62ba95fea 100755
--- a/bigbluebutton-config/bin/bbb-conf
+++ b/bigbluebutton-config/bin/bbb-conf
@@ -173,6 +173,10 @@ NCPU=$(nproc --all)
 BBB_USER=bigbluebutton
 
 TURN=$SERVLET_DIR/WEB-INF/classes/spring/turn-stun-servers.xml
+TURN_ETC_CONFIG=/etc/bigbluebutton/turn-stun-servers.xml
+if [ -f "$TURN_ETC_CONFIG" ]; then
+    TURN=$TURN_ETC_CONFIG
+fi
 STUN="$(xmlstarlet sel -N x="http://www.springframework.org/schema/beans" -t -m '_:beans/_:bean[@class="org.bigbluebutton.web.services.turn.StunTurnService"]/_:property[@name="stunServers"]/_:set/_:ref' -v @bean $TURN)"
 
 PROTOCOL=http
-- 
GitLab