accept tailscale ssh banner in haproxy health checks

This commit is contained in:
Abel Luck 2026-02-27 16:25:54 +01:00
parent e8ee085649
commit f0f6020d6a
3 changed files with 153 additions and 11 deletions

View file

@ -275,7 +275,7 @@ in
backend ${cfg.haproxy.backend}
balance leastconn
option tcp-check
tcp-check expect rstring SSH-2\\.0-OpenSSH.*
tcp-check expect rstring SSH-2\\.0-.*
${lib.concatMapStrings (
i:
"server ${cfg.haproxy.slotPrefix}${lib.fixedWidthNumber 3 i} 127.0.0.2:22 disabled check inter 5s fall 2 rise 2 maxconn 2\n "