Created
June 18, 2020 03:58
-
-
Save jadonk/af0180f87a014d5d8762f51bdd93d821 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cp ngrok.service ~/.config/systemd/user/ | |
cp ngrok.yml ~/.ngrok2/` | |
systemctl --user enable ngrok | |
sudo loginctl enable-linger debian |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Share local port(s) with ngrok | |
After=syslog.target network.target | |
[Service] | |
PrivateTmp=true | |
Type=simple | |
Restart=always | |
RestartSec=1min | |
ExecStart=/usr/bin/nohup /usr/bin/ngrok start --all | |
ExecStop=/usr/bin/killall ngrok | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
authtoken: AUTHTOKEN | |
tunnels: | |
default: | |
hostname: HOSTNAME.HOSTDOMAIN | |
proto: http | |
addr: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment