Simple wsgi middleware to unproxy AWS
Project description
Set the correct REMOTE_ADDR based on the X-Forwarded-For header while only trusting the CloudFront IP addresses.
Getting started
Using this module is really simple. In Django for example edit the wsgi.py file and add the following to the end of the file.
from wsgi_aws_unproxy import UnProxy
application = UnProxy(application)
Installation
You can install the latest version using pip:
pip install wsgi-aws-unproxy
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wsgi-aws-unproxy-0.0.1.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for wsgi_aws_unproxy-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2833d903fafaf0d4038aada4cf21d1ef47b0f2579c0c6812b700d8905e57e6c |
|
MD5 | c5c29d82f4b7a67b15c1f63f0349dc00 |
|
BLAKE2b-256 | acbf40eefe6e39c8accdf41969ecb3de8c6c95b71d943aee9f985eafee7c8d95 |