Ledge ConfigurationΒΆ

What follows is the output of ledge --help with no handlers or responders configured.

Note

If use the LEDGE_HANDLERS and/or LEDGE_RESPONDERS environmental variables to specify handlers or responders and invoke ledge with the --help option the help text for those handlers and responders will also be displayed.

Ledge and its associated plugins are controlled via environmental variables.
See the below documentation for information on how to configure this particular ledge instance.

LEDGE_MAX_CONTENT_LENGTH (Optional, Default=50000): The maximum request content size to accept, in bytes.
LEDGE_RESPONDERS (Optional): The full import paths to classes which implement the responder interface
LEDGE_HANDLERS (Optional): The full import paths to classes which implement the handler interface
LEDGE_PORT (Optional, Default=8080): The port for the ledge server to listen on.
LEDGE_THREAD_POOL_SIZE (Optional): The size of the threadpool ledge will use to run handlers. If not supplied the default from Twisted will be used.