Delete start-cloudflared.sh
Browse files- start-cloudflared.sh +0 -16
start-cloudflared.sh
DELETED
@@ -1,16 +0,0 @@
|
|
1 |
-
#!/bin/bash
|
2 |
-
|
3 |
-
# Download and prepare cloudflared
|
4 |
-
wget -q -c https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 -O cloudflared
|
5 |
-
chmod +x cloudflared
|
6 |
-
|
7 |
-
# Start cloudflared tunnel and output to a file
|
8 |
-
./cloudflared tunnel --url http://127.0.0.1:2242 &> cloudflared.log &
|
9 |
-
|
10 |
-
# Wait for the URL to be generated
|
11 |
-
while ! grep -q 'https://[^ ]*\.trycloudflare\.com' cloudflared.log; do
|
12 |
-
sleep 1
|
13 |
-
done
|
14 |
-
|
15 |
-
# Output the URL
|
16 |
-
grep -o 'https://[^ ]*\.trycloudflare\.com' cloudflared.log
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|