mirror of
https://github.com/TheRealOwenRees/chess-endgame-trainer.git
synced 2026-11-18 03:32:06 +00:00
Add JSON health check with database and tablebase status (#106)
This commit is contained in:
@@ -377,6 +377,10 @@ sudo journalctl -u chesstrainer -n 100 --no-pager
|
||||
curl -i http://127.0.0.1:4100/health
|
||||
```
|
||||
|
||||
`/health` returns JSON with `status`, `db`, `tablebase`, and `process`.
|
||||
It returns 200 for `ok`/`degraded` and 503 for `down`. A missing local tablebase
|
||||
reports `degraded` but still 200 because Lichess fallback is available.
|
||||
|
||||
## Backups
|
||||
|
||||
Take a logical backup of the production database:
|
||||
|
||||
Reference in New Issue
Block a user