Skip to content

Commit

Permalink
README updates
Browse files Browse the repository at this point in the history
  • Loading branch information
netptop committed Apr 6, 2024
1 parent d18bd83 commit 47b806c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ git clone https://your-proxy-domain.name/user-your-password/https/github.com/the
### 部署到cloudflare_worker
- 假设你的域名已经管理在cloudflare名下;
- git clone本项目,并使用文本编辑器打开build/worker.js (不用git clone,直接下载这个文件也可以)
- 搜索```http://localhost:5006```字符串,将它替换为你的代理网站域名,比如```https://your-proxy-domain.name```
- 搜索```http://localhost:5006```字符串,将它替换为你的代理网站域名,比如```https://your-proxy-domain.name```,注意是https
- 同时搜索user22334455,将其修改为你自己想设置的密码。
- 创建一个worker,并编辑worker,将上一步编辑过的worker.js拷贝粘贴到worker里面,保存部署。
- 在Workers & Pages页面,打开刚才保存的worker,点顶部的'触发器', 之后'添加自定义域', 设置为你的代理域名。自定义域名设置成功后,dns页面下面显示对应的dns类型应该是worker。
Expand All @@ -75,8 +75,8 @@ git clone https://your-proxy-domain.name/user-your-password/https/github.com/the
6. 测试是否能运行: node bundle.js, 如果没有错误,按ctrl+c结束程序。
7. 打开并修改保存config.json文件:
{
"proxy_url": "https://your-proxy.domain.name", // 这个是你申请到的代理服务器域名
"token_prefix": "/user-SetYourPasswordHere/", // 这个实际上是你的网站密码,用来防止非法访问,注意保留首尾的斜杠。
"proxy_url": "https://your-proxy.domain.name", //这个是你申请到的代理服务器域名,注意是https
"token_prefix": "/user-SetYourPasswordHere/", //这个实际上是你的网站密码,用来防止非法访问,注意保留首尾的斜杠。
"local_listen_port": 5006, // 这个不要修改, 以便和前面nginx配置一致。
"description": "注意:token_prefix相当于网站密码,请谨慎设置。 proxy_url和token_prefix合起来就是访问网址。"
}
Expand Down
4 changes: 2 additions & 2 deletions README_english.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ git clone https://your-proxy-domain.name/user-your-password/https/github.com/the
### Deploying to Cloudflare Worker
- Assume your domain is already managed under Cloudflare (in case you want to use your domain name)
- Git clone this project and use a text editor to open build/worker.js (you can also download this file directly without cloning)
- Search for the string http://localhost:5006 and replace it with your proxy website domain, such as https://your-proxy-domain.name. Also, search for user22334455 and change it to a password of your choosing.
- Search for the string http://localhost:5006 and replace it with your proxy website domain, such as https://your-proxy-domain.name. Must be https please. Also, search for user22334455 and change it to a password of your choosing.
- Create a worker and edit it by copying and pasting the modified worker.js into the worker, then save and deploy.
- 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 'Triggers' at the top, then 'Add custom domain', setting it to your proxy domain.
- 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.
Expand All @@ -58,7 +58,7 @@ git clone https://your-proxy-domain.name/user-your-password/https/github.com/the
6. Test if it can run: node bundle.js, if there are no errors, end the program with Ctrl+C.
7. Open and modify the config.json file, saving it:
{
"proxy_url": "https://your-proxy.domain.name", // This is your proxy server domain
"proxy_url": "https://your-proxy.domain.name", // This is your proxy server domain, must be https please.
"token_prefix": "/user-SetYourPasswordHere/", // This acts as your site password to prevent unauthorized access. Keep the slashes at the start and end.
"local_listen_port": 5006, // Do not modify this, to keep it consistent with the previous nginx configuration.
"description": "Note: The token_prefix acts as the site password. Please set it carefully. The proxy_url combined with the token_prefix forms the access URL."
Expand Down

0 comments on commit 47b806c

Please sign in to comment.