Quick Config
CLI Arguments
Config File (YAML)
Createconfig.yaml:
Config Options
Listener
Listener
| Option | Default | Description |
|---|---|---|
listen_address | 0.0.0.0 | IP to bind to |
listen_port | 8080 | Port to listen on |
workers | auto | Worker threads (or number) |
max_connections | 10000 | Max concurrent connections |
Backends
Backends
| Option | Default | Description |
|---|---|---|
host | - | Backend hostname/IP (required) |
port | - | Backend port (required) |
weight | 100 | Weight for weighted algorithms |
max_connections | 1000 | Max connections to this backend |
Health Checks
Health Checks
| Option | Default | Description |
|---|---|---|
enabled | true | Enable health checking |
interval_ms | 5000 | Check interval in ms |
max_failures | 3 | Failures before marking unhealthy |
path | / | HTTP path for checks |
Caching
Caching
| Option | Default | Description |
|---|---|---|
enabled | false | Enable response caching |
max_size | 10000 | Max cached responses |
default_ttl_seconds | 300 | Default TTL |
Compression
Compression
| Option | Default | Description |
|---|---|---|
enabled | false | Enable compression |
algorithm | gzip | gzip, brotli, or zstd |
min_size | 1024 | Min bytes to compress |
Rate Limiting
Rate Limiting
| Option | Default | Description |
|---|---|---|
enabled | false | Enable rate limiting |
requests_per_second | 1000 | Global RPS limit |
per_ip_rps | 100 | Per-IP RPS limit |
TLS
TLS
| Option | Default | Description |
|---|---|---|
enabled | false | Enable TLS termination |
cert_path | - | Path to certificate (PEM) |
key_path | - | Path to private key (PEM) |
Complete Example
Environment Variables
Validate Config
Next Steps
- CLI Reference - All commands
- File Config - YAML/TOML reference
- Examples - Real-world configs