Skip to content

weaming/proxyany

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Feature

  • Reverse proxy one site to any host, any port
  • Built-in HTTPS certification from let's encrypt (force 443 port)
  • Rewrite request headers
  • Rewrite response headers and text body

Usage

Usage of proxyany:
  -config string
    	file path domain mapping config in json format (default "config.json")
  -bind string
    	local bind [<host>]:<port> (default ":20443")
  -https
    	HTTPS mode, auto certification from let's encrypt

Example config

$ proxyany -https

proxy google

[
    {"from": "google.bitsflow.org", "to": "https://google.com"}
]

proxy twitter

[
    {"from": "t.byteio.cn", "to": "https://twitter.com"},
    {"from": "img.byteio.cn", "to": "https://twimg.com"}
]

About

HTTP(S) reverse proxy with domain replaced

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages