Skip to content

Instantly share code, notes, and snippets.

@ellisio
Created May 13, 2016 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ellisio/c717a5f0623204e6f509092845bb4023 to your computer and use it in GitHub Desktop.
Save ellisio/c717a5f0623204e6f509092845bb4023 to your computer and use it in GitHub Desktop.
[Unit]
Description=Share local port(s) with ngrok
After=syslog.target network.target
[Service]
User=vagrant
Type=simple
Restart=always
RestartSec=1min
TimeoutSec=0
WorkingDirectory=/var/www
ExecStart=/usr/local/bin/ngrok start -log=stdout -config=/var/www/ngrok.yml --all
ExecStop=/usr/bin/kill ngrok
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment