Reverse Proxy view that supports all HTTP methods, Diazo transformations and Single Sign-On.
Python HTML
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs Documentation for strict_cookies option May 28, 2018
revproxy fix flake8 whitespace Aug 16, 2018
tests Fix mocking of isclosed() in tests May 28, 2018
.coveragerc Coverage ignore lines based on real comments Feb 5, 2015
.gitignore Updated gitignore Mar 4, 2015
.travis.yml Update Python versions in Travis too May 30, 2018
CHANGELOG.rst
LICENSE Adding LICENSE Aug 15, 2013
MANIFEST.in Added README.rst to MANIFEST.in Oct 29, 2013
README.rst Update README.rst Feb 17, 2017
TODO.rst
setup.py Drop Python 3.3, 3.4, PyPy support; add Python 3.6 support May 30, 2018
tox.ini Drop Python 3.3, 3.4, PyPy support; add Python 3.6 support May 30, 2018

README.rst

Welcome to django-revproxy

https://travis-ci.org/TracyWebTech/django-revproxy.svg?branch=master https://landscape.io/github/TracyWebTech/django-revproxy/master/landscape.svg?style=flat

A simple reverse proxy using Django. It allows to use Django as a reverse Proxy to HTTP requests. It also allows to use Django as an authentication Proxy.

Documentation available at http://django-revproxy.readthedocs.org/

Features

  • Proxies all HTTP methods: HEAD, GET, POST, PUT, DELETE, OPTIONS, TRACE, CONNECT and PATCH
  • Copy all http headers sent from the client to the proxied server
  • Copy all http headers sent from the proxied server to the client (except hop-by-hop)
  • Basic URL rewrite
  • Sets the http header REQUEST_USER if the user is logged in Django
  • Handles redirects
  • Few external dependencies
  • Apply XSLT transformation in the response (requires Diazo)

Dependencies

  • django >= 1.8
  • urllib3 >= 1.12
  • diazo >= 1.0.5 (optional)
  • lxml >= 3.4, < 3.5 (optional, but diazo dependency)

Install

pip install django-revproxy