- Download ngrok binary
- https://ngrok.com/download
- unzip to /opt/ngrok
- Create /etc/systemd/system/ngrok.service
- Create /opt/ngrok/ngrok.yml
Created
November 6, 2017 13:19
-
-
Save ubergesundheit/7bdb6bdc818028a34a190363aed4d00a to your computer and use it in GitHub Desktop.
ngrok on raspberrypi on systemd
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 | |
StandardOutput=null | |
StandardError=null | |
ExecStart=/opt/ngrok/ngrok start -config /opt/ngrok/ngrok.yml --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: YOUR-AUTH-TOKEN | |
json_resolver_url: "" | |
dns_resolver_ips: [] | |
console_ui: false | |
log_format: logfmt | |
log: /opt/ngrok/ngrok.log | |
region: eu | |
web_addr: false | |
tunnels: | |
ssh: | |
proto: tcp | |
addr: 22 | |
inspect: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sudo systemctl enable ngrok
sudo systemctl start ngrok