Last active
October 2, 2019 10:43
-
-
Save biharitomi/f7911ee906b69260a6ceaa3196a1c86c to your computer and use it in GitHub Desktop.
SystemD configure Ngrok as unit
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: 1.... | |
| json_resolver_url: "" | |
| dns_resolver_ips: [] | |
| console_ui: false | |
| log_format: logfmt | |
| log: /opt/ngrok/ngrok.log | |
| region: eu | |
| tunnels: | |
| ssh: | |
| proto: tcp | |
| addr: 22 | |
| inspect: false |
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=Ngrok daemon for external availability | |
| After=network.target sshd.service | |
| [Service] | |
| ExecStart=/opt/ngrok/ngrok start --all --config /opt/ngrok/ngrok.yml | |
| ExecReload=/bin/kill -HUP $MAINPID | |
| KillMode=process | |
| IgnoreSIGPIPE=true | |
| Restart=always | |
| RestartSec=5 | |
| Type=simple | |
| [Install] | |
| WantedBy=multi-user.target | |
| Alias=ngrokd.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment