Path for built-in health endpoint (e.g./health). Disabled by default.
Features
Flag
Default
Description
--no-compression
—
Disable content-encoding (compression is enabled by default)
--server-timing
disabled
Enable Server-Timing header
--http3
disabled
Enable HTTP/3 (QUIC/UDP). Requires--ssl-certfile and --ssl-keyfile.
--reload
disabled
Watch files and restart on changes
--reload-include TEXT
—
Extra file extensions to watch (comma-separated, e.g.".html,.css,.md")
--reload-dir PATH
—
Extra directory to watch (repeatable)
TLS
Flag
Default
Description
--ssl-certfile PATH
—
TLS certificate file
--ssl-keyfile PATH
—
TLS private key file
Security
Flag
Default
Description
--max-requests-per-connection INT
0
Max requests per keep-alive connection (0 = unlimited)
Other
Flag
Default
Description
--root-path TEXT
""
ASGI root_path for reverse proxies
Examples
# Developmentpouncemyapp:app--reload--log-leveldebug# Development with extra file watchingpouncemyapp:app--reload--reload-include".html,.css,.md"--reload-dir ./templates# Production (TCP)pouncemyapp:app--host0.0.0.0--workers0--no-access-log# Production with JSON logs (for log aggregation)pouncemyapp:app--host0.0.0.0--workers0--log-formatjson# Production with Unix domain socket (behind nginx/caddy)pouncemyapp:app--uds /run/pounce.sock--workers0# Production with health checks and slowloris protectionpouncemyapp:app \
--host0.0.0.0 \
--workers0 \
--health-check-path /health \
--header-timeout10 \
--log-formatjson# TLSpouncemyapp:app--ssl-certfilecert.pem--ssl-keyfilekey.pem# TLS with HTTP/3pouncemyapp:app--ssl-certfilecert.pem--ssl-keyfilekey.pem--http3# Full production configurationpouncemyapp:app \
--host0.0.0.0 \
--port443 \
--workers4 \
--worker-modeauto \
--ssl-certfilecert.pem \
--ssl-keyfilekey.pem \
--no-compression \
--server-timing \
--health-check-path /health \
--header-timeout10 \
--log-levelwarning \
--log-formatjson
See Also
ServerConfig — Programmatic configuration (all options including those not in CLI)