Skip to content
This repository was archived by the owner on Dec 14, 2021. It is now read-only.

Commit e0986a5

Browse files
committed
disable TURN on blocked ports
see bigbluebutton#73
1 parent d43a2f3 commit e0986a5

File tree

3 files changed

+32
-9
lines changed

3 files changed

+32
-9
lines changed

sample.env

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
# fully automated Lets Encrypt certificates
88
ENABLE_HTTPS_PROXY=true
99

10-
# coturn (a TURN Server)
11-
# requires HTTPS Proxy to be enabled
12-
ENABLE_COTURN=true
1310

1411
# Greenlight Frontend
1512
# https://docs.bigbluebutton.org/greenlight/gl-overview.html

scripts/compose

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,30 @@ if [ -z "$EXTERNAL_IPv4" ]; then
2222
exit 1
2323
fi
2424

25+
# check for blocked TURN port
26+
# https://github.com/bigbluebutton/docker/issues/73
27+
if [ -n "$TURN_SERVER" ]; then
28+
port=$(echo $TURN_SERVER | awk -F: '{print $3}' | awk -F'?' '{print $1}')
29+
if [[ "$port" -lt "1024" ]] && [ "$port" != "443" ] && [ "$port" != "80" ]; then
30+
echo "-------------------------------------"
31+
echo "ERROR: you use the TURN port $port, which gets blocked by recent browser"
32+
echo "releases, leading BBB throwing always an 1006 error, connecting impossible."
33+
echo ""
34+
echo "If you use the integrated TURN server, there is currently no way to make it"
35+
echo "work. so you should disable the server by emptying the TURN_SERVER variable"
36+
echo "in .env"
37+
echo "If you use an external TURN server with an own IP, you should switch to"
38+
echo "port 443"
39+
echo ""
40+
echo "More Information: https://github.com/bigbluebutton/docker/issues/73"
41+
echo
42+
echo "current setting:"
43+
echo "TURN_SERVER=$TURN_SERVER"
44+
echo "-------------------------------------"
45+
exit 1
46+
fi
47+
fi
48+
2549
# set conditional variables
2650
export CERTIFICATE_DOMAINS=$DOMAIN
2751
export GREENLIGHT_ENDPOINT=https://$DOMAIN/bigbluebutton/api/

scripts/setup

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,14 @@ while [[ ! $https_proxy =~ ^(y|n)$ ]]; do
3333
done
3434

3535
coturn=""
36-
if [ "$https_proxy" == "y" ]
37-
then
38-
while [[ ! $coturn =~ ^(y|n)$ ]]; do
39-
read -p "Should a coturn be included? (y/n): " coturn
40-
done
41-
fi
36+
# comment out due to blocked TURN ports
37+
# https://github.com/bigbluebutton/docker/issues/73
38+
# if [ "$https_proxy" == "y" ]
39+
# then
40+
# while [[ ! $coturn =~ ^(y|n)$ ]]; do
41+
# read -p "Should a coturn be included? (y/n): " coturn
42+
# done
43+
# fi
4244

4345
prometheus_exporter=""
4446
while [[ ! $prometheus_exporter =~ ^(y|n)$ ]]; do

0 commit comments

Comments
 (0)