Skip to content

Commit e51221d

Browse files
committed
增加 cloudflare.worker.js 文件,懂的都懂
1 parent 2cb5e1f commit e51221d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cloudflare.worker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
使用此方式,不需要购买海外服务器,替换 /class/Class.ChatGPT.php 中的 api.openai.com 域名后,直接将本项目开源代码部署到国内服务器即可使用。
66
77
使用方法:
8-
1、在 CloudFlare 添加一个域名,注意只能填一级域名,不能填字域名,所以可以新注册一个便宜域名专门做这个事情;
9-
2、添加域名,同时 在域名注册商处把域名的 dns 设为 CloudFlare 的 dns 地址;
8+
1、在 CloudFlare 添加一个域名,注意只能填一级域名,不能填子域名,所以可以新注册一个便宜域名专门做这个事情;
9+
2、添加域名后,在域名注册商处把域名的 dns 设为 CloudFlare 的 dns 地址;
1010
3、等待域名生效,大概需要十几分钟到一个小时不等;
1111
4、添加一个 Worker ,把以下代码复制到进去;
1212
5、点击 Worker 的 Trigger 界面,设置自定义域名,选择第一步添加的域名;

0 commit comments

Comments
 (0)