关于goproxy配置使用更新篇
前一段时间,博主出了几篇免费的搭建科(翻)技(墙)的文章。
主要使用的是phuslu的 goproxy 和 fetch
详见文章:
http://fandai.gezi.workers.dev/p/1461.html
http://fandai.gezi.workers.dev/p/1469.html
http://fandai.gezi.workers.dev/p/1474.html
原理就是利用三个免费平台搭建。
今天有群友反馈,说 goproxy 报毒 ?且文中 goproxy 版本比较老?
由于我之前是在其他地方下载的 goproxy 。有可能是被加了壳的。
所以我更新一下 goproxy 配置 部分的内容!!!
goproxy下载
https://github.com/phuslu/goproxy/releases/tag/goproxy
可以根据你自己的系统选择。
我的电脑是 win7 x64位的,所以我选择: goproxy_windows_amd64-r707.7z
本文演示,也只演示该版本的配置!!!
配置步骤
我就继续这篇文章 利用Heroku搭建免费科学爬墙(亲测可行) 中搭建成功的网址来演示。
ruyo.herokuapp.com
1> 首选解压 goproxy_windows_amd64-r707.7z
2> 我们需要修改里面2个文件 php.json 和 httpproxy.json
PHP.json 修改2部分
"URL":"https://ruyo.herokuapp.com/index.do" 注意要替换你的网址哦。
"SSLVerify":true
	"Servers": [
		{
			"Url": "https://ruyo.herokuapp.com/index.do",
			"Password": "123456",
			"SSLVerify": true,
			"Host": "",
		}
	],
httpproxy.json
修改第三行: "Enabled":false
修改"PHP": 下面一行:
"Enabled":true
"Address": "127.0.0.1:8087"
{
	"Default": {
		"Enabled": false,
		"Address": "127.0.0.1:8087",
		"KeepAlivePeriod": 0,
		"ReadTimeout": 600,
		"WriteTimeout": 3600,
		"RequestFilters": [
			// "auth",
			// "rewrite",
			"stripssl",
			"autorange",
		],
		"RoundTripFilters": [
			"autoproxy",
			// "auth",
			// "vps",
			// "php",
			"gae",
			"direct",
		],
		"ResponseFilters": [
			"autorange",
			// "rewrite",
			// "ratelimit",
		]
	},
	"PHP": {
		"Enabled": true,
		"Address": "127.0.0.1:8087",
		"KeepAlivePeriod": 0,
		"ReadTimeout": 600,
		"WriteTimeout": 3600,
		"RequestFilters": [
			"stripssl",
		],
		"RoundTripFilters": [
			"autoproxy",
			"php",
		],
		"ResponseFilters": [
		]
	},
}
3> 修改完成后,双击 goproxy-gui.exe 运行。屏幕右下角会显示个小图标。右键小图标有设置IE代理。
常见问题
- 启动GoProxy证书报错
 
删除旧GoAgent证书。导入新证书即可。新证书在 goproxy文件夹中 GoProxy.crt
版权声明:
作者:我是小马甲~                                    
链接:https://fandai.gezi.workers.dev/1485.html
来源:如有乐享                                    
文章版权归作者所有,未经允许请勿转载。
                
Naive
Naive
jiansing
Holy@jiansing
云杰
Journey_of_Noro
咖哩云