reduce health spam, make dockerfile health checks respect the configured port

This commit is contained in:
Egor 2026-02-09 18:10:57 -08:00
parent 6b98fa9ec8
commit 461c926299
2 changed files with 2 additions and 1 deletions

View file

@ -42,6 +42,6 @@ USER prism
EXPOSE 8080 EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ 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"] CMD ["./prism"]

View file

@ -13,6 +13,7 @@ import (
var noisyPaths = map[string]bool{ var noisyPaths = map[string]bool{
"/.well-known/appspecific/com.chrome.devtools.json": true, "/.well-known/appspecific/com.chrome.devtools.json": true,
"/health": true,
} }
func authMiddleware(apiKey string) func(http.Handler) http.Handler { func authMiddleware(apiKey string) func(http.Handler) http.Handler {