fix: catch-all middleware allow localhost for healthcheck, drop certresolver

CatchAllMiddleware was intercepting Docker healthcheck requests (Host:
localhost) and internal API calls, returning 404 instead of passing
through. Also removed certresolver from catch-all Traefik router to
avoid cert provisioning issues with HostRegexp(.+).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-23 14:15:49 +01:00
parent df165f7ef0
commit d3f7e39d6d
2 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -295,7 +295,9 @@ func (s *Server) CatchAllMiddleware(next http.Handler) http.Handler {
if idx := strings.LastIndex(host, ":"); idx != -1 {
host = host[:idx]
}
if strings.EqualFold(host, controllerHost) || host == "" {
// Pass through: controller host, localhost (healthcheck/internal), or empty
if strings.EqualFold(host, controllerHost) || host == "" ||
host == "localhost" || host == "127.0.0.1" {
next.ServeHTTP(w, r)
return
}