Skip to content

Instantly share code, notes, and snippets.

@moritzh
Created October 16, 2023 21:01
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 moritzh/23fe799a731f460e305f1f5b45c79437 to your computer and use it in GitHub Desktop.
Save moritzh/23fe799a731f460e305f1f5b45c79437 to your computer and use it in GitHub Desktop.
ngrok service file for debian-esque distributions
# Contents of /etc/systemd/system/ngrok.service
[Unit]
Description=ngrok
After=network.target
[Service]
Type=simple
Restart=always
ExecStart=/usr/local/bin/ngrok http --domain $YOURDOMAINGOESHERE 80
User=$YOURUSER
RestartSec=10
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment