AkurAI Build
Menu

Public repository / 6e34fed0c66d04e240e149b8861eab61b0c02ee1

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