Skip to content

http-proxy-server is a http reverse proxy server write with golang

Notifications You must be signed in to change notification settings

dengqiao/go-http-proxy-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 

Repository files navigation

dengqiao/go-http-proxy-server

dengqiao/go-http-proxy-server` is a http reverse proxy server write with golang,based on json config

Requirements

http-proxy-server is write with golang,so you'll want to have golang installed as well

Installation

$ git clone https://github.com/dengqiao/go-http-proxy-server.git
cp go-http-proxy-server to your gopath 
cd gopath/go-http-proxy-server
go build
./go-http-proxy-server //if first run,will generate config template
vi config.json  
update content example
{	
	"Upstreams":[
		{
			"Name":"test",
			"Hosts":["http://localhost:8888","http://localhost:8080"],
			"CheckUrl":"/aliveCheck"
		}
	],
	"Services":[
		{
			"UpstreamName":"test",
			"PathPrefix":"/test"
		}
	]
}

Usage

cd go-http-proxy-server
./go-http-proxy-server --help
./go-http-proxy-server --port=8888 --proxy_connection_timeout=5 
   --proxy_timeout=30 --proxy_buffer_size=8192

access http://ip:port/status get proxy server status

About

http-proxy-server is a http reverse proxy server write with golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages