Skip to content

Commit 002b380

Browse files
committed
v2.3.1 support clouduflare page deployment now
1 parent 607b559 commit 002b380

File tree

5 files changed

+25
-4
lines changed

5 files changed

+25
-4
lines changed

README.md

+12-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ user browser +-------------->+ siteproxy +-------> wikipedia
2626

2727
- [特点](#特点)
2828
- [使用技巧](#使用技巧)
29-
- [部署到cloudflare_worker](#部署到cloudflare_worker)
29+
- [部署到Cloudflare_Worker](#部署到cloudflare_worker)
30+
- [部署到Cloudflare_Page](#部署到cloudflare_worker)
3031
- [部署到vps或者云服务器](#部署到vps或者云服务器)
3132
- [docker部署](#docker部署)
3233
- [联系方式](#联系方式)
@@ -48,7 +49,7 @@ user browser +-------------->+ siteproxy +-------> wikipedia
4849
git clone https://your-proxy-domain.name/user-your-password/https/github.com/the-repo-to-clone
4950
```
5051

51-
### 部署到cloudflare_worker
52+
### 部署到Cloudflare_Worker
5253
- 假设你的域名已经管理在cloudflare名下;
5354
- 下载build/worker.js: [链接](https://raw.githubusercontent.com/netptop/siteproxy/master/build/worker.js), 并使用文本编辑器打开.
5455
- 搜索```http://localhost:5006```字符串,将它替换为你的代理服务器的域名,比如```https://your-proxy-domain.name```,注意修改为https
@@ -57,6 +58,15 @@ git clone https://your-proxy-domain.name/user-your-password/https/github.com/the
5758
- 在Workers & Pages页面,打开刚才保存的worker,点顶部的'设置'->'触发器', 之后'添加自定义域', 设置为你的代理域名。自定义域名设置成功后,dns页面下面显示对应的dns类型应该是worker。
5859
- 现在可以直接访问```https://your-proxy-domain.name/user-your-password/```, 最后的斜杠不能少。注意这里的域名和密码替换为你自己的域名和密码。
5960

61+
### 部署到Cloudflare_Page
62+
- 假设你的域名已经管理在cloudflare名下;
63+
- git clone https://github.com/netptop/siteproxy.git
64+
- 用文本编辑器打开siteproxy/build/cf_page/_worker.js, 搜索```http://localhost:5006```字符串,将它替换为你的代理服务器的域名,比如```https://your-proxy-domain.name```,注意修改为https
65+
- 同时搜索user22334455,将其修改为你自己想设置的密码, 为空时表示不需要密码就可以访问。保存。
66+
- 登录cloudflare, 在"Workers和Pages"里面"使用直接上传创建"一个page, 上传 siteproxy/build/cf_page目录部署。
67+
- 在Workers & Pages页面,打开刚才部署的page,点顶部的'自定义域', 之后'添加自定义域', 设置为你的代理域名。激活域。
68+
- 现在可以直接访问```https://your-proxy-domain.name/user-your-password/```, 最后的斜杠不能少。注意这里的域名和密码替换为你自己的域名和密码。
69+
6070
### 部署到vps或者云服务器
6171
```
6272
1. 创建一个ssl website(使用certbot and nginx, google下用法), 配置nginx,

README_english.md

+10
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Note: To reduce the risk of phishing, the code of siteproxy 2.0 is obfuscated, a
1212
- [Features](#features)
1313
- [Usage Tips](#usage-tips)
1414
- [Deploying to Cloudflare Worker](#deploying-to-cloudflare-worker)
15+
- [Deploying to Cloudflare Pages](#deploying-to-cloudflare-page)
1516
- [Deploying to VPS or Cloud Server](#deploying-to-vps-or-cloud-server)
1617
- [Docker deployment](#docker-deployment)
1718
- [Contact Information](#contact-information)
@@ -41,6 +42,15 @@ git clone https://your-proxy-domain.name/user-your-password/https/github.com/the
4142
- If you use cloudflare worker domain, skip this step, If you want to use your own domain name, on the Workers & Pages page, open the worker you just saved, click 'Settings'->'Triggers' at the top, then 'Add custom domain', setting it to your proxy domain.
4243
- Now you can directly access https://your-proxy-domain.name/user-your-password/, don't miss the last '/' please. And please replace the domain and password with your own.
4344

45+
### Deploy to Cloudflare Pages
46+
- Assume your domain is already managed under Cloudflare.
47+
- Run `git clone https://github.com/netptop/siteproxy.git`.
48+
- Open `siteproxy/build/cf_page/_worker.js` with a text editor. Search for the string `http://localhost:5006` and replace it with your proxy server's domain, such as `https://your-proxy-domain.name`. Make sure to switch it to HTTPS.
49+
- Also, search for `user22334455` and change it to the password you want to set. If left empty, it will allow access without a password. Save the changes.
50+
- Log in to Cloudflare. In the "Workers & Pages" section, use the "Direct Upload" feature to create a new page by uploading the `siteproxy/build/cf_page` directory.
51+
- In the Workers & Pages interface, open the page you just deployed, click on 'Custom Domains' at the top, and then 'Add Custom Domain'. Set it to your proxy domain. Activate the domain.
52+
- Now you can directly access `https://your-proxy-domain.name/user-your-password/`. The trailing slash is required. Make sure to replace the domain and password with your own.
53+
4454
### Deploying to VPS or Cloud Server
4555
- node v21 or above version is needed.
4656
```

build/cf_page/_worker.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/worker.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bundle.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)