Openyx commited on
Commit
eabf904
·
verified ·
1 Parent(s): 186a6ca

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +7 -5
entrypoint.sh CHANGED
@@ -5,13 +5,15 @@ set -e
5
  python -m g4f --port 7860 &
6
  G4F_PID=$!
7
 
8
- # Give the server a moment to start
9
  sleep 2
10
 
11
- # Create a public HTTPS tunnel with localhost.run
12
- # -o options disable host key checking since the host key changes frequently
13
- ssh ssh -R 78:localhost:7860 serveo.net
 
 
14
 
15
- # If the tunnel exits, clean up the server
16
  kill $G4F_PID 2>/dev/null
17
  wait $G4F_PID 2>/dev/null
 
5
  python -m g4f --port 7860 &
6
  G4F_PID=$!
7
 
8
+ # Wait a bit for the server to be ready
9
  sleep 2
10
 
11
+ # Create public HTTPS tunnel with serveo.net
12
+ ssh -o StrictHostKeyChecking=no \
13
+ -o UserKnownHostsFile=/dev/null \
14
+ -R 80:localhost:7860 \
15
+ serveo.net
16
 
17
+ # Cleanup when the tunnel exits
18
  kill $G4F_PID 2>/dev/null
19
  wait $G4F_PID 2>/dev/null