privateone commited on
Commit
ea56e9c
·
verified ·
1 Parent(s): 2b696f2

Update custom-entrypoint.sh

Browse files
Files changed (1) hide show
  1. custom-entrypoint.sh +5 -6
custom-entrypoint.sh CHANGED
@@ -3,17 +3,16 @@
3
  # Detect external/public IP dynamically (you can hardcode this if needed)
4
  EXTERNAL_IP=$(curl -s https://ifconfig.me)
5
 
6
- # Start TURN server
7
  exec turnserver \
8
  --listening-ip=0.0.0.0 \
9
  --listening-port=7860 \
10
  --tls-listening-port=7860 \
11
- --external-ip="$EXTERNAL_IP" \
 
 
 
12
  --log-file=stdout \
13
  --simple-log \
14
  --no-cli \
15
- --realm=yourdomain.example.com \
16
- --use-auth-secret \
17
- --static-auth-secret=your-secret-key \
18
- --userdb=:memory: \
19
  "$@"
 
 
3
  # Detect external/public IP dynamically (you can hardcode this if needed)
4
  EXTERNAL_IP=$(curl -s https://ifconfig.me)
5
 
 
6
  exec turnserver \
7
  --listening-ip=0.0.0.0 \
8
  --listening-port=7860 \
9
  --tls-listening-port=7860 \
10
+ --cert=/etc/turn/certs/turn_server_cert.pem \
11
+ --pkey=/etc/turn/certs/turn_server_pkey.pem \
12
+ --user=myuser:mypassword \
13
+ --realm=yourdomain.example.com \
14
  --log-file=stdout \
15
  --simple-log \
16
  --no-cli \
 
 
 
 
17
  "$@"
18
+