Skip to content

Instantly share code, notes, and snippets.

@gitschaub
Last active February 24, 2017 05:06
Show Gist options
  • Save gitschaub/5f6dfe5f7695f9d396245fd93a4f8a67 to your computer and use it in GitHub Desktop.
Save gitschaub/5f6dfe5f7695f9d396245fd93a4f8a67 to your computer and use it in GitHub Desktop.
[Unit]
Description=Share local port(s) with ngrok
After=syslog.target network.target
[Service]
PrivateTmp=true
Type=simple
User=pi
Restart=always
RestartSec=1min
StandardOutput=null
StandardError=null
ExecStart=/usr/local/bin/ngrok tcp 22
ExecStop=/usr/bin/killall ngrok
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment