cmd: use live endpoint instead of ready for inbuild healthcheck

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer 2023-05-08 22:04:18 +02:00
parent 99e2c6911c
commit 9d9616138f
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ func checkServer() int {
h := &http.Client{
Transport: web.NewUserAgentTransport("goauthentik.io/healthcheck", http.DefaultTransport),
}
url := fmt.Sprintf("http://%s/-/health/ready/", config.Get().Listen.HTTP)
url := fmt.Sprintf("http://%s/-/health/live/", config.Get().Listen.HTTP)
res, err := h.Head(url)
if err != nil {
log.WithError(err).Warning("failed to send healthcheck request")