Ensure HealthChecks can be disabled

This commit is contained in:
Gregor Kleen 2019-05-26 17:18:15 +02:00
parent 4a621cbb2f
commit f2ea8eb2cf

View File

@ -389,7 +389,7 @@ instance FromJSON AppSettings where
appJwtExpiration <- o .:? "jwt-expiration"
appJwtEncoding <- o .: "jwt-encoding"
appHealthCheckInterval <- o .: "health-check-interval"
appHealthCheckInterval <- (assertM' (> 0) . ) <$> o .: "health-check-interval"
appHealthCheckDelayNotify <- o .: "health-check-delay-notify"
appHealthCheckHTTP <- o .: "health-check-http"