chore: update health check

This commit is contained in:
Jonas Kaninda
2024-11-25 17:40:03 +01:00
parent eb7f825969
commit 64de080158
6 changed files with 32 additions and 18 deletions

View File

@@ -78,13 +78,13 @@ func (gatewayServer GatewayServer) Initialize() *mux.Router {
}
// Routes health check
if !gateway.DisableHealthCheckStatus {
r.HandleFunc("/healthz", heath.HealthCheckHandler).Methods("GET")
r.HandleFunc("/health/routes", heath.HealthCheckHandler).Methods("GET")
}
// Health check
r.HandleFunc("/health/live", heath.HealthReadyHandler).Methods("GET")
r.HandleFunc("/readyz", heath.HealthReadyHandler).Methods("GET")
r.HandleFunc("/healthz", heath.HealthReadyHandler).Methods("GET")
// Enable common exploits
if gateway.BlockCommonExploits {
logger.Info("Block common exploits enabled")