SpiderClub / haipproxy

:sparkling_heart: High available distributed ip proxy pool, powerd by Scrapy and Redis
https://spiderclub.github.io/haipproxy/
MIT License
5.43k stars 914 forks source link

怎么更换httpbin.py #46

Closed OccupationName closed 6 years ago

OccupationName commented 6 years ago

国内好像链接httpbin.org比较困难,今天用httpbin.org验证的时候就出现了 <!DOCTYPE html>

Application Error

导致可用IP数量的下降,应该修改那些配置文件替换 httpbin.org成其他的网址

ResolveWang commented 6 years ago

可能是httpbin.org对服务器的部署做了修改,heroku在国内访问确实很慢,这段时间比较忙,您可以自己找类似的对国内用户有好的服务进行替换

OccupationName commented 6 years ago

我的想法是自己安装一个httpbin服务,将httpbin.py里的网址替换为自己的服务器 根据教程 pip install httpbin pip install gunicorn gunicorn -b :80 httpbin:app 但是不能使用https 接下来是要安装https证书吗

ResolveWang commented 6 years ago

前端加一层nginx就行了,让nginx解析https请求