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
Built Distribution
File details
Details for the file wsgi-aws-unproxy-0.0.1.tar.gz
.
File metadata
- Download URL: wsgi-aws-unproxy-0.0.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cc98b25467e28207b282b7cf22f792b8c2952b1fded599ba379c453b9fa1526 |
|
MD5 | be82777d7d18be73004f393b496e6086 |
|
BLAKE2b-256 | 3bfd90cdd99ac844ce9437e46ef77a0b8aa069ec266259952cd0947da2cd8fce |
Provenance
File details
Details for the file wsgi_aws_unproxy-0.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: wsgi_aws_unproxy-0.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2833d903fafaf0d4038aada4cf21d1ef47b0f2579c0c6812b700d8905e57e6c |
|
MD5 | c5c29d82f4b7a67b15c1f63f0349dc00 |
|
BLAKE2b-256 | acbf40eefe6e39c8accdf41969ecb3de8c6c95b71d943aee9f985eafee7c8d95 |