Automatically start ngrok by systemd
Go to file
Andrei Tenescu 5c0391d6cc
Update install.sh
Check if git is installed. Without git, the installer fails with the misleading error:

Failed to enable unit: Unit file ngrok.service does not exist.
Failed to start ngrok.service: Unit ngrok.service not found.
2020-08-25 14:42:51 +03: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 Add configuration files 2017-04-10 12:58:50 +08: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>