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 Simple Health Check Endpoint #89

Merged
merged 6 commits into from
Apr 18, 2022

Conversation

abenerd
Copy link
Contributor

@abenerd abenerd commented Apr 16, 2022

This PR adds another endpoint to check the health of the application, but this endpoint does not require authentication and returns a non 200 status code should the application not be healthy.
To not leak any data the enpoint does not reveal what kind of checks have been run or which ones failed should the application not be healthy.
This endpoint could for example be used to indicate the readiness of a container or pod in a docker or kubernetes environment.

Copy link
Member

@freekmurze freekmurze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this, let's simplify it a little bit.

@freekmurze freekmurze merged commit 680c572 into spatie:main Apr 18, 2022
@freekmurze
Copy link
Member

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

Successfully merging this pull request may close these issues.

2 participants