出自:https://www.xrgzs.top/posts/lucky-stun-upnp-nat1
Docker安装lucky照抄即可 主路由打开UPNP
http://IP:16601/访问账号密码666
没有账号的注册个账号:https://dash.cloudflare.com/
concat("http://66.66.66.66:6666", http.request.uri.path)
接口地址获取:
提前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
请求头
X-Auth-Email: email
X-Auth-Key: Global API Key
请求主体
{
"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
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容