🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

github.com/dengqiao/go-http-proxy-server

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/dengqiao/go-http-proxy-server

v0.0.0-20131028065637-3f329fb41bdb
Source
Go
Version published
Created
Source

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

FAQs

Package last updated on 28 Oct 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts