aiohttp-wsgi-serve(1)
β¨ NAME β¨
okay bestie, this is aiohttp-wsgi-serve(1) π and it's giving "run a WSGI application" energy π¦
aiohttp-wsgi-serve - run a WSGI application
π SYNOPSIS π
here's how you call it, no cap π
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 π
okay so this one is simple but iconic β¨ it runs a WSGI application on top of the asyncio event loop π literally that's the whole vibe.
π OPTIONS π
-h,--helpβ pulls up the help message and then peaces out π (exits)--host HOSTβ the host interfaces you want to bind π defaults to'0.0.0.0'and'::', and you can stack this one multiple times--port PORT,-p PORTβ the port to bind πͺ defaults to8080--unix-socket UNIX_SOCKETβ give it a path to a unix socket to bind π but heads up, it can't be used together withhostπ--unix-socket-perms UNIX_SOCKET_PERMSβ the filesystem permissions applied to that unix socket π defaults to384--backlog BACKLOGβ the socket connection backlog π₯ defaults to1024--static STATICβ static route mappings written as'path=directory'π thepathhas to start with a slash but must not end with one π and yes, you can specify this multiple times--static-cors STATIC_CORSβ set it to'*'to turn on CORS for static files from every origin π or pass a string to enable CORS for one specific origin π― defaults toNone--script-name SCRIPT_NAMEβ the URL prefix for the WSGI application π£οΈ it should start with a slash but not end with one π defaults to''--url-scheme URL_SCHEMEβ a hint about which URL scheme is used to reach the application π it corresponds toenviron['wsgi.url_scheme']and the default is auto-detected to'http'or'https'π€--threads THREADSβ how many threads process the application logic π§΅ defaults to4--inbuf-overflow INBUF_OVERFLOWβ if the request body is bigger than this value (measured in bytes), a tempfile gets created π defaults to524288--max-request-body-size MAX_REQUEST_BODY_SIZEβ the maximum number of bytes allowed in a request body π« defaults to1073741824bigger requests get an HTTP 413 (Request Entity Too Large) response, so be warned π--shutdown-timeout SHUTDOWN_TIMEOUTβ how long to wait when closing client connections on server shutdown β³ defaults to60.0--verbose,-vβ turns up the verbosity π’ you can specify this multiple times for extra drama--quiet,-qβ turns the verbosity down π€« also specifiable multiple times--versionβ displays version information π·οΈ
π EXAMPLES π
run a 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) πΈ
that's the whole tea βπ«Ά aiohttp-wsgi-serve 0.8.2, last glow-up on 29 June 2019 π now go run that app, bestie πβ¨
π¦ where this page comes from
- debian bookworm: aiohttp-wsgi-serve 0.10.0-1 Β· BSD-3-Clause
- debian trixie: aiohttp-wsgi-serve 0.10.0-1 Β· BSD-3-Clause
- ubuntu jammy: aiohttp-wsgi-serve 0.8.2-3 Β· BSD-3-Clause
- ubuntu noble: aiohttp-wsgi-serve 0.10.0-1 Β· BSD-3-Clause
- ubuntu resolute: aiohttp-wsgi-serve 0.10.0-1build1 Β· BSD-3-Clause
- ubuntu stonking: aiohttp-wsgi-serve 0.10.0-1build1 Β· BSD-3-Clause
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms