Features
- Hot-reload config.toml — The server and client poll
config.tomlfor changes every 3 seconds and apply updates without a restart. Hot-reloadable fields:password,headers,path_prefix,root_redirect,root_html,health_response. - Lock-free config reads — Runtime config is stored behind
ArcSwap(single atomic load per request), so hot-reload adds zero contention to the request path. - CLI override protection — Fields set via CLI flags (
--password,--cookie, etc.) are never overwritten by config file changes. - Automatic reconnect on credential change (client) — When
passwordorheaderschange in config.toml, the client generates a new session ID and reconnects the SSE stream automatically. - Graceful error handling — Deleted config files, bad TOML, and failed crypto derivation are all logged and skipped without crashing. The process keeps running with the last good config.