mirror of
https://github.com/lone-cloud/prism
synced 2026-06-03 19:54:44 -07:00
reduce health spam, make dockerfile health checks respect the configured port
This commit is contained in:
parent
6b98fa9ec8
commit
461c926299
2 changed files with 2 additions and 1 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue