File size: 421 Bytes
2677ef7
 
c686159
916e0c0
2677ef7
c686159
 
 
 
 
 
 
 
 
 
2677ef7
 
c686159
2677ef7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

# Log file for debugging
LOG_FILE="/app/warp-log.txt"

# Start the Cloudflare Warp daemon in the background
{
    echo "Starting Cloudflare Warp..."
    warp-cli set-mode proxy
    warp-cli set-proxy-port 40000
    warp-cli connect
    sleep 5
    echo "Cloudflare Warp status:"
    warp-cli status
} > $LOG_FILE 2>&1 &

# Run your FastAPI application
echo "Starting FastAPI application..."
exec python run.py