privateone commited on
Commit
85de5c2
·
verified ·
1 Parent(s): 483971e

Update custom-entrypoint.sh

Browse files
Files changed (1) hide show
  1. custom-entrypoint.sh +6 -2
custom-entrypoint.sh CHANGED
@@ -1,5 +1,7 @@
1
  #!/bin/bash
2
 
 
 
3
  # Detect external/public IP dynamically (you can hardcode this if needed)
4
  # EXTERNAL_IP=$(curl -s https://ifconfig.me)
5
 
@@ -17,6 +19,7 @@
17
 
18
  turnserver -c /etc/coturn/turnserver.conf --no-cli &
19
  TURN_PID=$!
 
20
 
21
  # Start ngrok TCP tunnel for port 7860
22
  # Needs NGROK_AUTHTOKEN as env var
@@ -24,9 +27,10 @@ if [ -z "$NGROK_AUTHTOKEN" ]; then
24
  echo "⚠ No NGROK_AUTHTOKEN set. Please pass it with -e NGROK_AUTHTOKEN=your_token"
25
  exit 1
26
  fi
27
-
28
  ngrok config add-authtoken "$NGROK_AUTHTOKEN"
29
- ngrok tcp 7860 --log=stdout &
 
30
  NGROK_PID=$!
31
 
32
  # Trap SIGTERM/SIGINT and stop child processes
 
1
  #!/bin/bash
2
 
3
+ set -e
4
+
5
  # Detect external/public IP dynamically (you can hardcode this if needed)
6
  # EXTERNAL_IP=$(curl -s https://ifconfig.me)
7
 
 
19
 
20
  turnserver -c /etc/coturn/turnserver.conf --no-cli &
21
  TURN_PID=$!
22
+ NGROK_AUTHTOKEN="2OPQX6SQh0QCxXiJ2az4ncuma06_fPNSBi2NN19pRicnxiz7"
23
 
24
  # Start ngrok TCP tunnel for port 7860
25
  # Needs NGROK_AUTHTOKEN as env var
 
27
  echo "⚠ No NGROK_AUTHTOKEN set. Please pass it with -e NGROK_AUTHTOKEN=your_token"
28
  exit 1
29
  fi
30
+ echo "TOKEN : $NGROK_AUTHTOKEN"
31
  ngrok config add-authtoken "$NGROK_AUTHTOKEN"
32
+ ngrok turn 7860 --url=heather-tressy-paxton.ngrok-free.app
33
+ # ngrok tcp 7860 --log=stdout &
34
  NGROK_PID=$!
35
 
36
  # Trap SIGTERM/SIGINT and stop child processes