Menu
Public repository / dcc3eb9a6a7cc0d8d9814f0ea82d2c8b8c76f163
AkurAI-Monitor / scripts/akurai-vm-health-tunnel.service
Latest change b7ced4d1047f9fefbebc8df92ac853910850811f - Version polling from titan: VM health tunnel unit and docs by Ólafur Búi Ólafsson
# Forward tunnel so the titan monitor's version poller can reach VM apps that have no public # health route: akurai-drive (VM 8095) and akurai-dns (VM 127.0.0.1:8053). # Install: cp scripts/akurai-vm-health-tunnel.service ~/.config/systemd/user/ && systemctl --user enable --now akurai-vm-health-tunnel # Disable: systemctl --user disable --now akurai-vm-health-tunnel [Unit] Description=Forward tunnel: titan 127.0.0.1:18095/18053 -> VM akurai-drive/akurai-dns health After=network-online.target [Service] ExecStart=/usr/bin/ssh -N -o ExitOnForwardFailure=yes -o ServerAliveInterval=10 -o ServerAliveCountMax=3 -o BatchMode=yes -L 127.0.0.1:18095:127.0.0.1:8095 -L 127.0.0.1:18053:127.0.0.1:8053 akurai-ec2 Restart=always RestartSec=3 [Install] WantedBy=default.target