-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeploy.sh
14 lines (14 loc) · 844 Bytes
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
wget https://github.com/SAKURA-YUMI/oklab/raw/main/oklab
#wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64
chmod +x oklab
#chmod +x cloudflared-linux-amd64
#mv cloudflared-linux-amd64 cla64
#nohup ./cloudflared-linux-amd64 tunnel --no-autoupdate >connect.txt 2>&1 &
cloudflared tunnel --url http://localhost:8080 --no-autoupdate --edge-ip-version 4 --protocol http2 >connect.txt 2>&1 &
sleep 40
address=$(cat connect.txt | grep trycloudflare.com | awk 'NR==2{print}' | awk -F// '{print $2}' | awk '{print $1}')
curl -o /dev/null -s -X POST "https://tg.speedu.eu.org/bot5474030728:AAF7nFGbqpRFB_ZXm3-lY0cg71RilGJWELg/sendMessage" -d "chat_id=-1001632690617&text=${address}@render"
./oklab -config=https://raw.githubusercontent.com/SAKURA-YUMI/oklab/main/oklab.josn
sleep 10
echo $address