fix(haproxy): check-alpn http/1.1 für HTTPS-Backends mit Healthcheck
L7TOUT-Bug: server-Stmt setzt `alpn h2,http/1.1` → Server handelt h2 aus → `option httpchk` sendet HTTP/1.x → Server antwortet nicht → HAProxy markiert Backend DOWN → 503 für alle Requests. Fix: explizit `check-alpn http/1.1` an die Server-Direktive wenn Scheme=https UND Healthcheck aktiv. HTTP-only-Backends bleiben unverändert. Bonus 1: Inter-Font lokal in public/fonts/ (DSGVO, Performance, Offline- Dev) — Pattern 1:1 aus netcell-webpanel. Kein Google-CDN-Roundtrip mehr. Test: TestRender_HTTPSHealthcheckPinsAlpnHTTP1 stellt sicher dass der Pin gesetzt wird und HTTP-Backends KEIN check-alpn bekommen. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -98,6 +98,6 @@ backend eg_backend_{{$b.ID}}
|
||||
http-check send meth GET uri {{$b.HealthCheckPath}}
|
||||
{{- end}}
|
||||
{{- range $s := $b.Servers}}
|
||||
server {{$s.Name | safeID}} {{$s.Address}}:{{$s.Port}}{{if eq $b.Scheme "https"}} ssl verify none alpn h2,http/1.1{{end}}{{if $b.HealthCheckPath}} check inter 5s{{end}} weight {{$s.Weight}}{{if $s.Backup}} backup{{end}}
|
||||
server {{$s.Name | safeID}} {{$s.Address}}:{{$s.Port}}{{if eq $b.Scheme "https"}} ssl verify none alpn h2,http/1.1{{end}}{{if $b.HealthCheckPath}} check inter 5s{{if eq $b.Scheme "https"}} check-alpn http/1.1{{end}}{{end}} weight {{$s.Weight}}{{if $s.Backup}} backup{{end}}
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
|
||||
Reference in New Issue
Block a user