Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add healthcheck #2

Open
ThomasDonath opened this issue May 13, 2021 · 0 comments
Open

add healthcheck #2

ThomasDonath opened this issue May 13, 2021 · 0 comments

Comments

@ThomasDonath
Copy link

great utility!

If I'll use it in a cloud with a public endpoint I must use it with authentication. This works well, but a cloud load balancer does need a healthcheck endpoint without authentication. So I've patched server.go

80a81,86
> 		// TDO
> 		if req.URL.Path == "/healtz" || req.URL.Path == "/healtz/" {
> 			w.WriteHeader(200)
> 			return
> 		}
>       // end TDO

As I can't open a pull request I'll leave here. Would be great if accepted. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant