Expand description
Production HTTP serving configuration — the NGINX-equivalent surface.
Apps can load this from config/anvil.toml via ServerConfig::from_file,
or build it programmatically via the typed structs. Env vars override file
values where applicable (Laravel-style precedence).
Structs§
- Access
LogConfig - Acme
Config - Basic
Auth Rule - Compression
Config - Cors
Config - Hsts
Config - IpRule
- Limits
Config - Proxy
Rule - Rate
Limit Config - Redirect
Http Config - Rewrite
Rule - Route
Timeout Rule - Server
Config - SniCert
Entry - Static
Mount - TlsConfig
- Trailing
Slash Config - Trusted
Proxies Config
Enums§
Functions§
- parse_
duration - Parse
"30s","5m","1h","1d","1y", or a bare integer (seconds). Bare unit strings like"m"(without a count) are interpreted as"1m"so rate-limit specs like"5/m"parse cleanly. - parse_
rate - Parse
"60/minute"→ (count, window). - parse_
size - Parse
"10MB","500KB","2GB", or a bare integer (bytes).