cmd: use live endpoint instead of ready for inbuild healthcheck
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
99e2c6911c
commit
9d9616138f
|
@ -47,7 +47,7 @@ func checkServer() int {
|
||||||
h := &http.Client{
|
h := &http.Client{
|
||||||
Transport: web.NewUserAgentTransport("goauthentik.io/healthcheck", http.DefaultTransport),
|
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)
|
res, err := h.Head(url)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.WithError(err).Warning("failed to send healthcheck request")
|
log.WithError(err).Warning("failed to send healthcheck request")
|
||||||
|
|
Reference in New Issue