Skip to content

Commit

Permalink
cloudflare updates.
Browse files Browse the repository at this point in the history
cloudflare updates.
  • Loading branch information
netptop committed Jun 29, 2022
1 parent 8a08d06 commit 2551e27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ user browser +-------------->+ siteproxy +-------> wikipedia
```
### 部署到cloudflare_worker
```
注意:workers.dev域名基本被屏蔽,建议申请一个自己的域名。
1. 注册一个cloudflare账户
2. 在cloudflare上创建一个worker, 记下这个worker的子域名, 比如 abcd123.xxxx.workers.dev
2. 在cloudflare上创建一个worker, 使用自己的域名,或者生成的这个worker的子域名, 比如 abcd123.xxxx.workers.dev
3. 下载https://raw.githubusercontent.com/netptop/siteproxy/master/build/worker.js文件,用文本编辑器打开,搜索siteproxy.netptop.workers.dev,替换成你的子域名
4. 在cloudflare上编辑刚刚创建的worker, 将worker.js所有内容拷贝,覆盖粘贴到worker里面,保存
5. 现在应该可以在浏览器中 访问你的子域名了
Expand Down

0 comments on commit 2551e27

Please sign in to comment.