Configuration
On top of the application's common configuration (see Configuration), a web application is tuned with the [web] section.
| Key | Type | Default | Description |
|---|---|---|---|
host | String | "0.0.0.0" | Host of the web application |
port | u16 | 8000 | Port of the web application |
router-prefix | Option<String> | None | Global prefix for the Axum router |
request-timeout | RequestTimeoutConfig | { enabled = false, timeout = "15s" } | Timeout for web controllers |
body-limit | BodyLimitConfig | 10MB | Size limit for body extraction in web requests |
TOML example
toml
[web]
host = "0.0.0.0"
port = 8000
router-prefix = "/api"
body-limit = "2MB"
request-timeout = { enabled = true, timeout = "30s" }Additional settings
- Access logger (
[web.logger]): see Access Logger. - OpenAPI (
[web.openapi]): see OpenAPI & Swagger UI.

