Fixes #1. - New `logto: {status, responseTimeMs, error?}` field in /health response - Configurable via LOGTO_HEALTH_URL env (default: auth.lacompagniemaximus.com OIDC discovery endpoint) - 3s timeout via AbortController; /health stays HTTP 200 even if Logto is down - getCpuPercent converted to async (setTimeout-based delay) so the 500ms CPU sample and the Logto fetch run concurrently via Promise.all; total latency stays max(500ms, <=3000ms) instead of the sum - Commit project CLAUDE.md (previously untracked) with the new field documented Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
3 lines
143 B
Text
3 lines
143 B
Text
PORT=3001
|
|
HEALTH_TOKEN=change-me-to-a-strong-secret
|
|
LOGTO_HEALTH_URL=https://auth.lacompagniemaximus.com/oidc/.well-known/openid-configuration
|