Idle time with no body bytes. A client that sends no request body
bytes for this long gets 408 Request Timeout. A slow but steady
upload is fine. It stops clients that hold a connection open.
Native server only. Default 120 seconds.
gzip responses on a Rust thread of the native server. Off by default.
Streamed responses are not compressed. It costs CPU on every response.
Let the proxy do it when you have one.
Fills the container: registerContainer from
lib/generated/container.g.dart. Every isolate runs it, so each one has its
own instances. It also gives the routers, services and model
binders that dox_builder found.
Routers to register. You can leave it empty: every class that
extends Router is in lib/generated/container.g.dart. A router listed here
comes first, in this order.
Services to run at start, in every isolate. You can leave it empty:
every class that implements DoxService is in
lib/generated/container.g.dart. A service listed here runs first.
On SIGTERM or SIGINT the server stops taking new connections, and
waits this long for open requests to finish. Then it closes the rest,
runs DoxShutdown services and exits. Default 8 seconds. Keep it
below the kill timeout of your platform (docker stop: 10 seconds).
IPs or CIDR ranges of reverse proxies (nginx, Caddy, load balancer)
that Dox trusts. Only when the direct client is in this list does Dox
read X-Forwarded-For for req.ip() and X-Forwarded-Proto for
req.scheme(). Use ['*'] to trust any direct client, but only the
last X-Forwarded-For hop (only safe when the app port is not
reachable from outside). Empty by default.