Spaces:
Paused
Paused
Update custom-entrypoint.sh
Browse files- custom-entrypoint.sh +11 -10
custom-entrypoint.sh
CHANGED
|
@@ -5,21 +5,22 @@ set -e
|
|
| 5 |
# Detect external/public IP dynamically (you can hardcode this if needed)
|
| 6 |
# EXTERNAL_IP=$(curl -s https://ifconfig.me)
|
| 7 |
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
|
|
|
| 12 |
# --cert=/etc/turn/certs/turn_server_cert.pem \
|
| 13 |
# --pkey=/etc/turn/certs/turn_server_pkey.pem \
|
| 14 |
-
|
| 15 |
# --realm=privateone-coturn.hf.space \
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
|
| 20 |
|
| 21 |
-
exec turnserver -c /etc/coturn/turnserver.conf --no-cli &
|
| 22 |
-
TURN_PID=$!
|
| 23 |
|
| 24 |
|
| 25 |
# ngrok config add-authtoken "$NGROK_AUTHTOKEN"
|
|
|
|
| 5 |
# Detect external/public IP dynamically (you can hardcode this if needed)
|
| 6 |
# EXTERNAL_IP=$(curl -s https://ifconfig.me)
|
| 7 |
|
| 8 |
+
exec turnserver \
|
| 9 |
+
-c /etc/coturn/turnserver.conf \
|
| 10 |
+
--listening-ip=0.0.0.0 \
|
| 11 |
+
--listening-port=7860 \
|
| 12 |
+
--tls-listening-port=7860 \
|
| 13 |
# --cert=/etc/turn/certs/turn_server_cert.pem \
|
| 14 |
# --pkey=/etc/turn/certs/turn_server_pkey.pem \
|
| 15 |
+
--user=myuser:mypassword \
|
| 16 |
# --realm=privateone-coturn.hf.space \
|
| 17 |
+
--log-file=stdout \
|
| 18 |
+
--simple-log \
|
| 19 |
+
--no-cli
|
| 20 |
|
| 21 |
|
| 22 |
+
#exec turnserver -c /etc/coturn/turnserver.conf --no-cli &
|
| 23 |
+
#TURN_PID=$!
|
| 24 |
|
| 25 |
|
| 26 |
# ngrok config add-authtoken "$NGROK_AUTHTOKEN"
|