No description
The /api/doctor endpoint complements /healthz (runtime state) with configuration correctness checks. Returns 200 with a JSON report containing all check results. Checks implemented: - data_dir_writable: verifies /data is writable with >100 MB free - db_integrity: runs PRAGMA integrity_check - firmware_dir: checks for *.bin files in /firmware - mdns_binding: verifies mDNS service is registered (or SPAXEL_MDNS_ENABLED=false) - mqtt_reachable: TCP connectivity test if SPAXEL_MQTT_BROKER is set - ntp_reachable: UDP connectivity test if SPAXEL_NTP_SERVER is set - install_secret: verifies install_secret row exists in auth table - pin_configured: verifies pin_bcrypt is non-null in auth table - node_token_consistency: verifies all nodes have valid MAC addresses Response format includes overall status (ok/warn/error), individual check results with name/status/message, and checked_at timestamp. Requires session cookie authentication via authHandler.RequireAuth. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| .beads | ||
| .github/workflows | ||
| .marathon | ||
| dashboard | ||
| docs | ||
| firmware | ||
| mothership | ||
| test/acceptance | ||
| tests/e2e | ||
| .dockerignore | ||
| .gitignore | ||
| .golangci.yml | ||
| .needle-predispatch-sha | ||
| .needle.yaml | ||
| API_IMPLEMENTATION_STATUS.md | ||
| docker-compose.yml | ||
| Dockerfile | ||
| fix_ble_handlers.py | ||
| go.work | ||
| PROGRESS.md | ||
| VERSION | ||