FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Joeviocoe/python-reverse-proxy: A simple reverse proxy in python · GitHub

 
 

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

python-reverse-proxy

A simple reverse proxy in python

  1. Create local DNS entries in your DNS resolver to resolve target hostnames to a local server IP (Optional: Virtual IP in the router)
  2. Optional: Create NAT Port Forward from Virtual IP port 443 to high port (e.g. 9443) if you don't want the python server running as root
  3. Generate an SSL certificate for the original target domains, signed by your local network CA which must be trusted by client browsers and applications. The paths to the cert file and key file are defined on lines 10 and 11 of proxy.py
  4. Example: python3 proxy.py --hostname tile.openstreetmap.org --port 9443 2>/dev/null

This proxy.py file includes modifications from the original to include:

  1. Line 15: Changed header merge function to work with Python 3.6
  2. Line 32: Modify the GET Request URL to work with the new destination URL path format
  3. Line 45: Changed resp.text to resp.content to proxy images instead of text
  4. Line 108: Added wrapper for SSL

About

A simple reverse proxy in python

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages


Back | FazBrowse Home | New Git URL