Skip to content

Configuration ​

On top of the application's common configuration (see Configuration), a web application is tuned with the [web] section.

KeyTypeDefaultDescription
hostString"0.0.0.0"Host of the web application
portu168000Port of the web application
router-prefixOption<String>NoneGlobal prefix for the Axum router
request-timeoutRequestTimeoutConfig{ enabled = false, timeout = "15s" }Timeout for web controllers
body-limitBodyLimitConfig10MBSize 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 ​