- Download ngrok binary
- https://ngrok.com/download
- unzip to /opt/ngrok
- Create /etc/systemd/system/ngrok.service
- Create /opt/ngrok/ngrok.yml
-
-
Save RedcoatAsher/2e31f8dd3de12213d7195e253caf6686 to your computer and use it in GitHub Desktop.
ngrok on raspberrypi on systemd
This file contains hidden or 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 hidden or 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