Cloudflare Worker Proxy 反向代理
2023-6-28 13:45:0 Author: blog.upx8.com(查看原文) 阅读量:63 收藏

本项目是cloudflare反向代理。在cloudflare网站中新建worker,把worker.js文件中的内容复制进去即可使用。

代码地址:https://github.com/hadis898/gh-proxy/blob/master/worker.js

使用方法为在任意url前面加上https://你的域名/proxy/ 即可使用cloudflare加速。

使用方法示例:https://gh.7761.cf/https://raw.githubusercontent.com/hadis898/Linux-tools/main/vps.sh

本人另外一个项目是基于vercel的反向代理,仓库地址https://github.com/gaboolic/vercel-reverse-proxy 供大家参考

0 登录https://www.cloudflare.com/

1 创建应用程序 创建应用程序 2 创建worker(pages也一样) 创建worker 3 点"部署"按钮 创建worker 4 编辑代码 编辑代码 4 编辑代码 编辑代码 5 把worker.js文件中的内容复制进去,点"保存并部署" 保存并部署 6 (可选) 添加自定义域

绑定自己的域名。CloudFlare Workers 设置使用自定义域名教程

在任意url前面加上https://你的域名/proxy/ 即可使用cloudflare加速。


文章来源: https://blog.upx8.com/3662
如有侵权请联系:admin#unsafe.sh