OpenFolia

Health check

GET
/health

Liveness, for orchestrators deciding whether to restart the instance; needs no token. Always 200 while the server runs (content and PDF routes work without the database); database is unavailable when it does not answer within 2 seconds. A load balancer choosing instances to route to uses /health/ready.

Response Body

application/json
  1. response
status*string

degraded when a dependency is unavailable

Value in"ok""degraded"
database*string
Value in"ok""unavailable"
pool*string

saturated when queries wait for a free database connection

Value in"ok""saturated"
blobs*string

unavailable when the blob store (images, files) does not answer

Value in"ok""unavailable"
Example Request
curl -X GET 'http://localhost:3000/health'
Example Response200
{  "status": "ok",  "database": "ok",  "pool": "ok",  "blobs": "ok"}