https://github.com/jazzband/django-revproxy
Reverse Proxy view that supports all HTTP methods, Diazo transformations and Single Sign-On.
https://github.com/jazzband/django-revproxy
Last synced: 5 months ago
JSON representation
Reverse Proxy view that supports all HTTP methods, Diazo transformations and Single Sign-On.
- Host: GitHub
- URL: https://github.com/jazzband/django-revproxy
- Owner: jazzband
- License: mpl-2.0
- Created: 2013-08-15T13:49:37.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2025-03-02T22:06:03.000Z (7 months ago)
- Last Synced: 2025-04-04T06:00:37.645Z (6 months ago)
- Language: Python
- Homepage:
- Size: 467 KB
- Stars: 314
- Watchers: 14
- Forks: 121
- Open Issues: 29
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
Welcome to django-revproxy
==========================.. image:: https://jazzband.co/static/img/badge.svg
:alt: Jazzband
:target: https://jazzband.co/.. image:: https://img.shields.io/pypi/v/django-revproxy.svg
:alt: PyPI version
:target: https://pypi.org/project/django-revproxy/.. image:: https://img.shields.io/pypi/pyversions/django-revproxy.svg
:alt: Supported Python versions
:target: https://pypi.org/project/django-revproxy/.. image:: https://github.com/jazzband/django-revproxy/workflows/Test/badge.svg
:target: https://github.com/jazzband/django-revproxy/actions
:alt: GitHub Actions.. image:: https://codecov.io/gh/jazzband/django-revproxy/branch/master/graph/badge.svg
:target: https://codecov.io/gh/jazzband/django-revproxy
:alt: Test CoverageA 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``