Update the download link for Ngrok v3

This commit is contained in:
Vincent Hsu 2022-06-13 10:34:42 +08:00 committed by Vincent Hsu
parent e4c01148bd
commit 71a52012ce
2 changed files with 13 additions and 10 deletions

View File

@ -15,6 +15,9 @@ else
ARCH=arm
fi
ARCHIVE=ngrok-v3-stable-linux-$ARCH.zip
DOWNLOAD_URL=https://bin.equinox.io/c/bNyj1mQVY4c/$ARCHIVE
if [ ! $(which wget) ]; then
echo 'Please install wget package'
exit 1
@ -52,9 +55,9 @@ sed -i "s/<add_your_token_here>/$1/g" /opt/ngrok/ngrok.yml
cd /opt/ngrok
echo "Downloading ngrok for $ARCH . . ."
wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-$ARCH.zip
unzip ngrok-stable-linux-$ARCH.zip
rm ngrok-stable-linux-$ARCH.zip
wget $DOWNLOAD_URL
unzip $ARCHIVE
rm $ARCHIVE
chmod +x ngrok
systemctl enable ngrok.service

View File

@ -1,9 +1,9 @@
version: "2"
authtoken: <add_your_token_here>
region: ap
tunnels:
web:
proto: http
addr: 80
ssh:
proto: tcp
addr: 22
web:
proto: http
addr: 80
ssh:
proto: tcp
addr: 22