An HTTP to WSGI server that relies on Python's included batteries
Project description
WSGI Lithium
A lightweight and dumb HTTP to WSGI server that relies on Python's included batteries.
This WSGI server is intended to be used in Kubernetes-like environments, where some component handle load-balancing, application crashing, loggin, etc.
How to install
pip install wsgi_lithium
How to use
WSGI Lithium should be used behind a reverse proxy.
wsgi-lithium -b [::]:8000 module:app
How to set SCRIPT_NAME
from the HTTP server
Simply configure your reverse proxy to set the Virtual-Location
header to the
value you want in SCRIPT_NAME
. You might have to rewrite the path with
said reverse proxy.
For example, if you serve an application on /foo/bar
, where /bar
is the sub
path, and /foo
is the "virtual location", set the Virtual-Location
header to
/foo
and rewrite the path so it become /bar
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for wsgi_lithium-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1309ba392419763b21fada1810a81d6751b1992438c07cbd545e9478b836828e |
|
MD5 | 83ec528bfeb44f624a623cde77adc860 |
|
BLAKE2b-256 | 58bccb4ac38ea601c97cb2673b2ac43151400c5d5df404edfec756f01bcba717 |