mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-09 19:52:30 +02:00
IMGPROXY_HEALTH_CHECK_PATH config
This commit is contained in:
@@ -29,6 +29,9 @@ func buildRouter() *router.Router {
|
||||
|
||||
r.GET("/", handleLanding, true)
|
||||
r.GET("/health", handleHealth, true)
|
||||
if len(config.HealthCheckPath) > 0 {
|
||||
r.GET(config.HealthCheckPath, handleHealth, true)
|
||||
}
|
||||
r.GET("/favicon.ico", handleFavicon, true)
|
||||
r.GET("/", withMetrics(withPanicHandler(withCORS(withSecret(handleProcessing)))), false)
|
||||
r.HEAD("/", withCORS(handleHead), false)
|
||||
|
Reference in New Issue
Block a user