forgejo/routers/web
ttys3 e933f31426
Add health check endpoint (#18465)
* chore: add health check endpoint

docs: update document about health check

fix: fix up Sqlite3 ping. current ping will success even if the db file is missing

fix: do not expose privacy information in output field

* refactor: remove HealthChecker struct

* Added `/api/healthz` to install routes.

This was needed for using /api/healthz endpoint in Docker healthchecks,
otherwise, Docker would never become healthy if using healthz endpoint
and users would not be able to complete the installation of Gitea.

* Update modules/cache/cache.go

* fine tune

* Remove unnecessary test code. Now there are 2 routes for installation (and maybe more in future)

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Marcos de Oliveira <marcossantos@furb.br>
2022-05-04 14:56:20 +03:00
..
admin Respect DefaultUserIsRestricted system default when creating new user (#19310) 2022-04-29 15:38:11 -04:00
auth Federation: return useful statistic information for nodeinfo (#19561) 2022-05-02 21:35:45 +08:00
dev
events Improve Stopwatch behavior (#18930) 2022-04-25 22:45:22 +02:00
explore Never use /api/v1 from Gitea UI Pages (#19318) 2022-04-07 20:59:56 +02:00
feed Add ContextUser to http request context (#18798) 2022-03-26 17:04:22 +08:00
healthcheck Add health check endpoint (#18465) 2022-05-04 14:56:20 +03:00
misc Fix panic in team repos API (#19431) 2022-04-20 18:43:26 +08:00
org Never use /api/v1 from Gitea UI Pages (#19318) 2022-04-07 20:59:56 +02:00
repo Use for a repo action one database transaction (#19576) 2022-05-03 21:46:28 +02:00
user Use correct context in routers/web (#19597) 2022-05-03 23:38:34 +02:00
auth.go Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00
auth_windows.go Let web and API routes have different auth methods group (#19168) 2022-03-28 12:46:28 +08:00
base.go Update HTTP status codes to modern codes (#18063) 2022-03-23 12:54:07 +08:00
goget.go Refactor legacy unknwon/com package, improve golangci lint (#19284) 2022-04-01 16:47:50 +08:00
home.go
metrics.go Update HTTP status codes to modern codes (#18063) 2022-03-23 12:54:07 +08:00
nodeinfo.go
swagger_json.go
web.go Add health check endpoint (#18465) 2022-05-04 14:56:20 +03:00