From 461c9262994cd506d5ee9fff46e8d5ca128bca5a Mon Sep 17 00:00:00 2001 From: Egor Date: Mon, 9 Feb 2026 18:10:57 -0800 Subject: [PATCH] reduce health spam, make dockerfile health checks respect the configured port --- Dockerfile | 2 +- service/server/middleware.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 44b3000..c34a348 100644 --- a/Dockerfile +++ b/Dockerfile @@ -42,6 +42,6 @@ USER prism EXPOSE 8080 HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ - CMD wget --no-verbose --tries=1 --spider http://localhost:8080/health || exit 1 + CMD wget --no-verbose --tries=1 --spider http://localhost:${PORT:-8080}/health || exit 1 CMD ["./prism"] diff --git a/service/server/middleware.go b/service/server/middleware.go index f4684f3..e2d3e06 100644 --- a/service/server/middleware.go +++ b/service/server/middleware.go @@ -13,6 +13,7 @@ import ( var noisyPaths = map[string]bool{ "/.well-known/appspecific/com.chrome.devtools.json": true, + "/health": true, } func authMiddleware(apiKey string) func(http.Handler) http.Handler {