Automatically start ngrok by systemd
Go to file
Catherine JM Laurin 6c5c177258
Update
Believe to have originally placed the wrong token?  Have chosen to change it to token via "ngrok" and not the token indicatred on my server.
2022-01-18 14:06:06 -05:00
install.sh Update install.sh 2020-08-25 14:42:51 +03:00
LICENSE Initial commit 2017-04-10 12:37:02 +08:00
ngrok.service Always restart services 2019-02-15 21:13:19 +08:00
ngrok.yml Update 2022-01-18 14:06:06 -05:00
README.md Avoid git clone when executing install.sh inside the project folder 2020-03-17 18:45:06 +08:00
uninstall.sh Add install/uninstall scripts 2019-02-15 16:52:16 +08:00

Installation

Step 1: Place ngrok in /opt/ngrok/.

Step 2: Get authtoken from ngrok website, then add it to /opt/ngrok/ngrok.yml.

Step 3. Modify your own configrations in /opt/ngrok/ngrok.yml.

Step 4: Add ngrok.service to /lib/systemd/system/.

Step 5: Start ngrok service by typing:

    systemctl enable ngrok.service
    systemctl start ngrok.service

or just execute install.sh on Linux x64 platform.

    curl -O https://raw.githubusercontent.com/vincenthsu/systemd-ngrok/master/install.sh
    chmod +x install.sh
    sudo ./install.sh <your_authtoken>