Skip to main content

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 details)

Uploaded Source

Built Distribution

wsgi_aws_unproxy-0.0.1-py2.py3-none-any.whl (4.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file wsgi-aws-unproxy-0.0.1.tar.gz.

File metadata

File hashes

Hashes for wsgi-aws-unproxy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2cc98b25467e28207b282b7cf22f792b8c2952b1fded599ba379c453b9fa1526
MD5 be82777d7d18be73004f393b496e6086
BLAKE2b-256 3bfd90cdd99ac844ce9437e46ef77a0b8aa069ec266259952cd0947da2cd8fce

See more details on using hashes here.

Provenance

File details

Details for the file wsgi_aws_unproxy-0.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for wsgi_aws_unproxy-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e2833d903fafaf0d4038aada4cf21d1ef47b0f2579c0c6812b700d8905e57e6c
MD5 c5c29d82f4b7a67b15c1f63f0349dc00
BLAKE2b-256 acbf40eefe6e39c8accdf41969ecb3de8c6c95b71d943aee9f985eafee7c8d95

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page