1.Lucky,STUN+CF301重定向 实现纯域名不加端口号301P2P访问、qbittorrent开放端口下载
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
docker run -d --name lucky --restart=always --net=host -v /home/docker/luckyconf:/goodluck gdy666/lucky
https://tool.chinaz.com/port
没有账号的注册个账号:https://dash.cloudflare.com/
concat("http://66.66.66.66:6666", http.request.uri.path)
API获取:https://dash.cloudflare.com/profile/api-tokens
接口地址获取:
提前F12打开控制台 点击保存
https://dash.cloudflare.com/api/v4/zones/{区域ID}/rulesets/{规则集ID}/rules/{规则ID}
把https://dash.cloudflare.com/api/v4/zones替换成https://api.cloudflare.com/client/v4/zones
https://api.cloudflare.com/client/v4/zones/{区域ID}/rulesets/{规则集ID}/rules/{规则ID}
请求方法PATCH
请求头
Authorization: Bearer 你的API令牌
请求主体
{
"action": "redirect",
"expression": "(http.host eq \"你的域名\")",
"description": "规则名称",
"action_parameters": {
"from_value": {
"status_code": 301,
"target_url": {
"expression": "concat(\"http://#{ipAddr}\", http.request.uri.path)"
},
"preserve_query_string": true
}
}
}
"success": true
2.Bitwarden
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容