From 57e86582d15d4cf4dabe8221f8eb3f85d347b944 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 12 Oct 2021 18:44:08 +0200 Subject: [PATCH] Revert "root: handle liveness probe in router (also keep internal one)" This reverts commit dd7cb45733e0425d895d29596108924ec5f2c7b9. --- internal/web/proxy.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/web/proxy.go b/internal/web/proxy.go index e85196edd..41f3c5173 100644 --- a/internal/web/proxy.go +++ b/internal/web/proxy.go @@ -39,6 +39,9 @@ func (ws *WebServer) configureProxy() { } ws.proxyErrorHandler(rw, r, fmt.Errorf("proxy not running")) }) + ws.m.Path("/-/health/live/").HandlerFunc(func(rw http.ResponseWriter, r *http.Request) { + rw.WriteHeader(204) + }) ws.m.PathPrefix("/").HandlerFunc(func(rw http.ResponseWriter, r *http.Request) { if !ws.p.IsRunning() { ws.proxyErrorHandler(rw, r, fmt.Errorf("authentik core not running yet"))