26 lines
547 B
Django/Jinja
26 lines
547 B
Django/Jinja
[Unit]
|
|
Description=Serveo Tunnel Service
|
|
After=network-online.target nginx.service
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=ubuntu
|
|
WorkingDirectory={{directory}}
|
|
ExecStart=/usr/bin/ssh \
|
|
-o ServerAliveInterval=60 \
|
|
-o ServerAliveCountMax=3 \
|
|
-o ExitOnForwardFailure=yes \
|
|
-o StrictHostKeyChecking=no \
|
|
-R {{nginx_app_name}}:80:{{nginx_domain}}:80 \
|
|
serveo.net
|
|
|
|
Restart=always
|
|
RestartSec=10
|
|
|
|
StandardOutput=append:{{tunnel_log}}
|
|
StandardError=append:{{tunnel_log_error}}
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|