Usage
Options
| Option | Default | Description |
|---|---|---|
--config, -c | cordon.toml | Path to config file |
--log-level | info | Log level: trace, debug, info, warn, error |
Examples
Behavior
- Parses and validates the config file. Exits with an error if invalid. Relative
ca_cert_path/ca_key_pathvalues are resolved against the config file’s directory, so configs work correctly when the working directory differs (e.g., when running as a launchd/systemd service). - Validates all HTTP route secrets from configured sources. If multiple secrets fail, all failures are reported at once so you can fix them in a single pass.
- Resolves PostgreSQL service credentials at startup (when services are configured).
- Generates or loads TLS certificates (if TLS is enabled).
- Binds the listener on the configured address. The health endpoint serves
200from this point. - Begins accepting connections. Response bodies are streamed through without buffering, so SSE and chunked transfer encoding responses (e.g., streaming AI API calls) work correctly.
Ctrl+C to stop, or run as a background service.