The actual construction effect of Qinglong (on-board address): http://jdbean.tk
QQ robot build effect , can send "menu", "login", "query" and other commands
The individual plugins used by the author include:
1. Qinglong panel
2. silly girl robot sillyGirl
3. QQ login plug-in go-cqhttp
4. WeChat plug-in XYO (currently charged, it is recommended to use Chihiro), robot effect: jdbean888
5. SMS login panel rabbit
6. Wire report monitoring auto_spy
JD on-hook integrated platform construction series:
I. Introduction
Thanks to the docker proxy pool provided by the big guy
Two. Text
Use docker to build, if you don’t have docker installed, please install it yourself
1. Run the proxy pool docker
mkdir -p /root/auto_proxy_pool && cd /root/auto_proxy_pool
#防火墙记得开放对应的端口
docker run -dit \
--name auto_proxy_pool \
--network bridge \
--restart always \
-p 8080(可自行修改):8080 \
-v /root/auto_proxy_pool:/run/data \
--privileged=true \
mzzsfy/auto-proxy-pool:latest
#更新命令
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower -c --run-once 容器名
After running, the proxy.template.yml file will be generated (the file will be overwritten every time it is restarted), and
the file will be renamed proxy.yml, and then refer to the simplest configuration modification, and the service needs to be restarted
cp /root/auto_proxy_pool/proxy.template.yml /root/auto_proxy_pool/proxy.yml
2. Configure the proxy.yml file
Xiaobai configuration, directly overwrite the original proxy.yml file; change the xxx in .+.xxx.com to the domain name that needs to be proxied, such as jd , and match multiple use|segmentation, example: (.+.xxx.com)|( .+.xxx.com)
Xiaobai recommends using the configuration below. For high-level players, you can view the proxy.template.yml file and configure it yourself
changeRequest:
- hostRegex: (.+\.jd\.com)|(.+\.isvjd\.com)|(.+\.isvjcloud\.com) #正则表达式
proxy: proxy
upstream:
proxy: #自定义名字
template: '{
{$x := regexFindAll "\\d{1,3}(\\.\\d{1,3}){3}:\\d{2,5}" . -1}}{
{range $s := $x}}{
{printf "http://%s" $s}}{
{end}}'
apiUrl: #这里是填写代理api地址,格式:txt,换行\n,提取1个
checkRetryNumber: 2 #检测代理次数,超过次数则获取新代理
apiRetryNumber: 5 #上游重试次数,超过次数则采用直连
checkUrl: http://jd.com/,http://baidu.com/,http://bilibili.com/ #检测代理是否有效,不用改
lifecycle: -1 #自动失效时间,-1为不自动失效,单位秒
maxSize: 5 #保留几个上游
checkTimeout: 2s #单个check超时时间
checkRetryWait: 500ms #重试check前等待时间
requestInterval: 1000ms #请求时间间隔,在这个时间内只会请求一次api
3. Purchase agent
The api agent chooses to purchase the agent by itself and generates the api to fill in the apiUrl in the proxy.yml file
#星空-每日签到100ip-7元10000ip
http://www.xkdaili.com/?ic=5d9q3z4d
#携趣-每日赠送1000ip-5元10000ip-5元1G
https://www.xiequ.cn/index.html?8a66a564
starry sky
Extract ip format
Whitelist (must be added)
Carry fun
Whitelist (must be added)
#查看代理池docker日志
docker logs -f --tail 500 auto_proxy_pool
4. Configure Qinglong and scripts
The simplest way to use js
Install and depend on global-agent and then add require("global-agent/bootstrap"); global.GLOBAL_AGENT.HTTP_PROXY="http://proxy pool docker address:8080" to
your js to use the proxy ;