Scroll to navigation

aiohttp-wsgi-serve(1) run a WSGI application aiohttp-wsgi-serve(1)

NAME

aiohttp-wsgi-serve - run a WSGI application

SYNOPSIS

aiohttp-wsgi-serve [-h] [--host HOST] [--port PORT]

[--unix-socket UNIX_SOCKET]
[--unix-socket-perms UNIX_SOCKET_PERMS]
[--backlog BACKLOG] [--static STATIC]
[--static-cors STATIC_CORS]
[--script-name SCRIPT_NAME]
[--url-scheme URL_SCHEME] [--threads THREADS]
[--inbuf-overflow INBUF_OVERFLOW]
[--max-request-body-size MAX_REQUEST_BODY_SIZE]
[--shutdown-timeout SHUTDOWN_TIMEOUT] [--verbose]
[--quiet] [--version]
module:application

DESCRIPTION

Run a WSGI application on top of asyncio event loop.

OPTIONS

show help message and exit
Host interfaces to bind. Defaults to '0.0.0.0' and '::'. Can be specified multiple times.
Port to bind. Defaults to 8080.
Path to a unix socket to bind, cannot be used with host.
Filesystem permissions to apply to the unix socket. Defaults to 384.
Socket connection backlog. Defaults to 1024.
Static route mappings in the form 'path=directory'. `path` must start with a slash, but not end with a slash. Can be specified multiple times.
Set to '*' to enable CORS on static files for all origins, or a string to enable CORS for a specific origin. Defaults to None.
URL prefix for the WSGI application, should start with a slash, but not end with a slash. Defaults to ''.
A hint about the URL scheme used to access the application. Corresponds to environ['wsgi.url_scheme']. Default is auto-detected to 'http' or 'https'.
Number of threads used to process application logic. Defaults to 4.
A tempfile will be created if the request body is larger than this value, which is measured in bytes. Defaults to 524288.
Maximum number of bytes in request body. Defaults to 1073741824. Larger requests will receive a HTTP 413 (Request Entity Too Large) response.
Timeout when closing client connections on server shutdown. Defaults to 60.0.
Increase verbosity. Can be specified multiple times.
Decrease verbosity. Can be specified multiple times.
Display version information.

EXAMPLES

Run WSGI application on local port 8000 with 8 threads:


$ aiohttp-wsgi-serve --host 127.0.0.1 --port 8000 --threads 8 wsgiapp:main

AUTHOR

aiohttp-wsgi was written by David Hall <dave@etianen.com>.

This manual page was written by William Grzybowski <william@grzy.org> for the Debian project (but may be used by others).

29 June 2019 aiohttp-wsgi-serve-0.8.2