gitea/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 Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
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 Renamed ctx.User to ctx.Doer. (#19161) 2022-03-22 15:03:22 +08:00
metrics.go Update HTTP status codes to modern codes (#18063) 2022-03-23 12:54:07 +08:00
nodeinfo.go Add nodeinfo endpoint for federation purposes (#16953) 2021-09-28 01:38:06 +02:00
swagger_json.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
web.go Add health check endpoint (#18465) 2022-05-04 14:56:20 +03:00