Settings#
ploneasgi reads its configuration from environment variables only.
ploneasgi.settings.load_env() loads a .env file first, if one exists, without overriding variables already set.
ploneasgi.settings.Settings.from_env() then builds a Settings instance from the environment.
Environment variables#
Variable |
|
Default |
Meaning |
|---|---|---|---|
|
|
|
Interface to bind. uvicorn binds IPv4 only for this value. |
|
|
|
Port to bind. |
|
|
|
Maximum concurrent WSGI calls, and the size of the limiter native routes share. It must not exceed the ZODB |
|
|
off |
Enables the access log. Accepts |
|
|
|
Root log level. |
|
|
|
Path to |
|
|
|
Bytes pulled from a streamed body per thread hop. |
|
|
|
Path prefix reserved for native routes. |
|
|
|
Site entered by native routes when a request carries no VirtualHostMonster rewrite. |
|
|
|
Largest request body accepted, in bytes. A larger body gets a |
Constraints#
PLONE_CONCURRENCYmust be less than or equal to the ZODBpool-sizeinzope.conf.ploneasgi.zopeapp.check_concurrency_contract()logs a warning when it is not.PLONE_HOSTmust be an IPv4 address for uvicorn to accept connections on it. Benchmark and probe127.0.0.1, neverlocalhost, which can resolve to::1.uvicorn's own access log is always off.
PLONE_ACCESS_LOGdecides whether there is an access log at all.