Welcome to django-revproxy
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 REMOTE_USER if the user is logged in Django
Sets the http headers X-Forwarded-For and X-Forwarded-Proto
Handles redirects
Few external dependencies
Apply XSLT transformation in the response (requires Diazo)
Dependencies
django >= 3.0
urllib3 >= 1.12
diazo >= 1.0.5 (optional)
lxml >= 3.4, < 3.5 (optional, but diazo dependency)
Install
pip install django-revproxy
Contents:
- Introduction
- Quickstart
- Usage
- Proxy Views
revproxy.views.ProxyView
revproxy.views.ProxyView.upstream
revproxy.views.ProxyView.add_remote_user
revproxy.views.ProxyView.add_x_forwarded
revproxy.views.ProxyView.default_content_type
revproxy.views.ProxyView.retries
revproxy.views.ProxyView.rewrite
revproxy.views.ProxyView.strict_cookies
revproxy.views.ProxyView.streaming_amount
revproxy.views.DiazoProxyView
- Proxy Views
- API
- Settings
- Changelog
- 0.13.0 (2024-11-05)
- 0.12.0 (2023-10-19)
- 0.11.0 (2023-02-26)
- 0.10.0 (2020-02-05)
- 0.9.15 (2018-05-30)
- 0.9.14 (2018-01-11)
- 0.9.13 (2016-10-31)
- 0.9.12 (2016-05-23)
- 0.9.11 (2016-03-29)
- 0.9.10 (2016-02-03)
- 0.9.9 (2015-12-15)
- 0.9.8 (2015-12-10)
- 0.9.7 (2015-09-17)
- 0.9.6 (2015-09-09)
- 0.9.5 (2015-09-02)
- 0.9.4 (2015-08-27)
- 0.9.3 (2015-06-12)
- 0.9.2 (2015-06-09)
- 0.9.1 (2015-05-18)
- 0.9.0 (2015-03-04)