usememos / memos

An open source, lightweight note-taking service. Easily capture and share your great thoughts.
https://usememos.com
MIT License
30.31k stars 2.27k forks source link

Healthcheck endpoint #2550

Closed JokerQyou closed 10 months ago

JokerQyou commented 10 months ago

Is your feature request related to a problem?

No, it's a regular feature request.

Describe the solution you'd like

Would like to have an endpoint like /api/healthz for use with monitoring services. Ideally this endpoint would require no authentication, and returns empty 204 response or simple text/JSON 200 response.

Additional context

Gitea has /api/healthz.

boojack commented 10 months ago

Updated in https://github.com/usememos/memos/commit/8586ebf0987a5e14ff86f9987a5f4f285be3ebfc

stanthewizzard commented 2 weeks ago

sorry to reopen this ticket /healthz is working but in portainer the container is only running no healthcheck is returned how do I have healthy in it ? (same in command line)

Thanks