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

View File

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