diff options
| author | Your Name <you@example.com> | 2026-05-26 18:01:30 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-26 18:01:30 +0530 |
| commit | e435f7d7b4ad4e4b1d3c21c35df5f41ffd642376 (patch) | |
| tree | ccb0587d8aff2d0513f2cef359349b6e0b1b947f /Cargo.toml | |
| parent | 8816a192c95cf539b65975469a2d61aed46f0414 (diff) | |
Add HTTP health endpoint on /health and /api/mirror-health
- New axum-based health server on port 7335 (configurable via health_port)
- Reports status, uptime, cycle_count, last_cycle_ok as JSON
- Status is 'ok' on startup and after successful cycles, 'degraded' after failures
- Config: storage.health_port defaults to 7335
- Spawned alongside daemon loop, independent of mirror cycles
Diffstat (limited to 'Cargo.toml')
| -rw-r--r-- | Cargo.toml | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -22,3 +22,4 @@ git2 = "0.20" | |||
| 22 | hex = "0.4" | 22 | hex = "0.4" |
| 23 | clap = { version = "4", features = ["derive", "env"] } | 23 | clap = { version = "4", features = ["derive", "env"] } |
| 24 | dirs = "6" | 24 | dirs = "6" |
| 25 | axum = "0.8" | ||