Last active
June 30, 2020 19:45
-
-
Save mtdefelice/3fbedf7dfd3074496f1db9d168454391 to your computer and use it in GitHub Desktop.
This file contains 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=Serveo Tunnel | |
After=network-online.target | |
[Service] | |
User=pi | |
Type=simple | |
ExecStart=/usr/bin/ssh \ | |
-vv \ | |
-o ExitOnForwardFailure=yes \ | |
-o ServerAliveInterval=30 \ | |
-o ServerAliveCountMax=3 \ | |
-o UserKnownHostsFile=/dev/null \ | |
-o StrictHostKeyChecking=no \ | |
-R <MY_SUBDOMAIN>:80:localhost:8080 serveo.net | |
StandardInput=tty-force | |
RestartSec=30 | |
Restart=always | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment