配置文件在config目录,采用json格式,包含
一个简单配置演示如下
{
"port":":8080",
"webport":":6060",
"reverse":true,
"proxy_pass":"127.0.0.1:80",
"auth":true,
"cache":false,
"cache_timeout":30,
"log":1,
"gfwlist":["baidu.com","google.com"],
"admin":{"Admin":"prxy"},
"user":{"proxy":"proxy"}
}
/*this is a configure for proxy server. log: 1 for Information, 0 for DebugInfor*/
在$GOPATH/src目录
$ git clone git://code.csdn.net/sakeven/httpproxy.git
安装go-logging
$ go get github.com/op/go-logging
打开$GOPATH/src/httpproxy目录,并编译
$ cd $GOPATH/src/httpporxy
$ go build
运行
$ ./httpproxy
Contact with the author [email protected]
Content type
Image
Digest
Size
7.7 MB
Last updated
over 8 years ago
docker pull gzmaxsum/httpproxy