Skip to content

Commit 84e98ef

Browse files
committed
chore: doc
1 parent 806806f commit 84e98ef

File tree

3 files changed

+129
-91
lines changed

3 files changed

+129
-91
lines changed

README.md

Lines changed: 89 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -128,25 +128,24 @@ Before starting deployment, please ensure you have prepared the following:
128128
- [ ] If using R2: Activate **Cloudflare R2** service and create a bucket (requires payment method)
129129
- [ ] If using Vercel: Register for a [Vercel](https://vercel.com) account
130130
- [ ] Configuration information for other S3 storage services:
131-
- `S3_ACCESS_KEY_ID`
132-
- `S3_SECRET_ACCESS_KEY`
133-
- `S3_BUCKET_NAME`
134-
- `S3_ENDPOINT`
131+
- `S3_ACCESS_KEY_ID`
132+
- `S3_SECRET_ACCESS_KEY`
133+
- `S3_BUCKET_NAME`
134+
- `S3_ENDPOINT`
135135

136136
**The following tutorial may be outdated. For specific details, refer to: [Cloudpaste Online Deployment Documentation](https://doc.cloudpaste.qzz.io)**
137137

138-
139138
<details>
140139
<summary><b>👉 View Complete Deployment Guide</b></summary>
141140

142141
### 📑 Table of Contents
143142

144143
- [Action Automated Deployment](#Action-Automated-Deployment)
145-
- [Backend Automated Deployment](#Backend-Automated-Deployment)
146-
- [Frontend Automated Deployment](#Frontend-Automated-Deployment)
144+
- [Backend Automated Deployment](#Backend-Automated-Deployment)
145+
- [Frontend Automated Deployment](#Frontend-Automated-Deployment)
147146
- [Manual Deployment](#Manual-Deployment)
148-
- [Backend Manual Deployment](#Backend-Manual-Deployment)
149-
- [Frontend Manual Deployment](#Frontend-Manual-Deployment)
147+
- [Backend Manual Deployment](#Backend-Manual-Deployment)
148+
- [Frontend Manual Deployment](#Frontend-Manual-Deployment)
150149
- [ClawCloud CloudPaste Deployment Tutorial](#ClawCloud-CloudPaste-Deployment-Tutorial)
151150

152151
---
@@ -201,10 +200,10 @@ Deployment is automatically triggered whenever files in the `frontend` directory
201200
3. Click "Settings" → "Environment variables"
202201
4. Add environment variable:
203202

204-
- Name: `VITE_BACKEND_URL`
205-
- Value: Your backend Worker URL (e.g., `https://cloudpaste-backend.your-username.workers.dev`) without trailing "/". It is recommended to use a custom worker backend domain.
203+
- Name: `VITE_BACKEND_URL`
204+
- Value: Your backend Worker URL (e.g., `https://cloudpaste-backend.your-username.workers.dev`) without trailing "/". It is recommended to use a custom worker backend domain.
206205

207-
- **<span style="color:red">Make sure to enter the complete backend domain name in "https://xxxx.com" format</span>**
206+
- **<span style="color:red">Make sure to enter the complete backend domain name in "https://xxxx.com" format</span>**
208207

209208
5. Important step: Then run the frontend workflow again to complete loading the backend domain!!!
210209

@@ -328,12 +327,12 @@ cd CloudPaste/backend
328327

329328
**Method 2**: Via Cloudflare Dashboard
330329

331-
1. Log in to [Cloudflare Dashboard](https://dash.cloudflare.com/)
332-
2. Select "Pages"
333-
3. Click "Create a project" → "Direct Upload"
334-
4. Upload files from the `dist` directory
335-
5. Set project name (e.g., "cloudpaste-frontend")
336-
6. Click "Save and Deploy"
330+
1. Log in to [Cloudflare Dashboard](https://dash.cloudflare.com/)
331+
2. Select "Pages"
332+
3. Click "Create a project" → "Direct Upload"
333+
4. Upload files from the `dist` directory
334+
5. Set project name (e.g., "cloudpaste-frontend")
335+
6. Click "Save and Deploy"
337336

338337
#### Vercel
339338

@@ -400,8 +399,8 @@ Then the frontend, as shown in the figure (for reference only):
400399
### 📑 Table of Contents
401400

402401
- [Docker Command Line Deployment](#Docker-Command-Line-Deployment)
403-
- [Backend Docker Deployment](#Backend-Docker-Deployment)
404-
- [Frontend Docker Deployment](#Frontend-Docker-Deployment)
402+
- [Backend Docker Deployment](#Backend-Docker-Deployment)
403+
- [Frontend Docker Deployment](#Frontend-Docker-Deployment)
405404
- [Docker Compose One-Click Deployment](#Docker-Compose-One-Click-Deployment)
406405

407406
---
@@ -762,27 +761,27 @@ Replace <bucketName> with your bucket name. For allowedOrigins in the cross-orig
762761

763762
5. **Configure MinIO in CloudPaste**
764763

765-
- Log in to CloudPaste admin panel
766-
- Go to "S3 Storage Settings" → "Add Storage Configuration"
767-
- Select "Other S3-compatible service" as provider
768-
- Enter details:
769-
- Name: Custom name
770-
- Endpoint URL: MinIO service URL (e.g., `https://minio.example.com`)
771-
- Bucket Name: Pre-created bucket
772-
- Access Key ID: Your Access Key
773-
- Secret Key: Your Secret Key
774-
- Region: Leave empty
775-
- Path-Style Access: MUST ENABLE!
776-
- Click "Test Connection" to verify
777-
- Save settings
764+
- Log in to CloudPaste admin panel
765+
- Go to "S3 Storage Settings" → "Add Storage Configuration"
766+
- Select "Other S3-compatible service" as provider
767+
- Enter details:
768+
- Name: Custom name
769+
- Endpoint URL: MinIO service URL (e.g., `https://minio.example.com`)
770+
- Bucket Name: Pre-created bucket
771+
- Access Key ID: Your Access Key
772+
- Secret Key: Your Secret Key
773+
- Region: Leave empty
774+
- Path-Style Access: MUST ENABLE!
775+
- Click "Test Connection" to verify
776+
- Save settings
778777

779778
6. **Troubleshooting**
780779

781-
- **Note**: If using Cloudflare's CDN, you may need to add `proxy_set_header Accept-Encoding "identity"`, and there are caching issues to consider. It is recommended to use only DNS resolution.
782-
- **403 Error**: Ensure reverse proxy includes `proxy_cache off` & `proxy_buffering off`
783-
- **Preview Issues**: Verify `MINIO_SERVER_URL` & `MINIO_BROWSER_REDIRECT_URL` are correctly set
784-
- **Upload Failures**: Check CORS settings; allowed origins must include frontend domain
785-
- **Console Unreachable**: Verify WebSocket config, especially `Connection "upgrade"`
780+
- **Note**: If using Cloudflare's CDN, you may need to add `proxy_set_header Accept-Encoding "identity"`, and there are caching issues to consider. It is recommended to use only DNS resolution.
781+
- **403 Error**: Ensure reverse proxy includes `proxy_cache off` & `proxy_buffering off`
782+
- **Preview Issues**: Verify `MINIO_SERVER_URL` & `MINIO_BROWSER_REDIRECT_URL` are correctly set
783+
- **Upload Failures**: Check CORS settings; allowed origins must include frontend domain
784+
- **Console Unreachable**: Verify WebSocket config, especially `Connection "upgrade"`
786785

787786
## More S3-related configurations to come......
788787

@@ -799,10 +798,10 @@ CloudPaste provides simple WebDAV protocol support, allowing you to mount storag
799798

800799
- **WebDAV Base URL**: `https://your-backend-domain/dav`
801800
- **Supported Authentication Methods**:
802-
- Basic Authentication (username+password)
801+
- Basic Authentication (username+password)
803802
- **Supported Permission Types**:
804-
- Administrator accounts - Full operation permissions
805-
- API keys - Requires enabled mount permission (mount_permission)
803+
- Administrator accounts - Full operation permissions
804+
- API keys - Requires enabled mount permission (mount_permission)
806805

807806
### Permission Configuration
808807

@@ -821,8 +820,8 @@ For a more secure access method, it is recommended to create a dedicated API key
821820
2. Navigate to "API Key Management"
822821
3. Create a new API key, **ensure "Mount Permission" is enabled**
823822
4. Usage method:
824-
- **Username**: API key value
825-
- **Password**: The same API key value as the username
823+
- **Username**: API key value
824+
- **Password**: The same API key value as the username
826825

827826
### NGINX Reverse Proxy Configuration
828827

@@ -862,20 +861,20 @@ location /dav {
862861

863862
1. **Connection Problems**:
864863

865-
- Confirm the WebDAV URL format is correct
866-
- Verify that authentication credentials are valid
867-
- Check if the API key has mount permission
864+
- Confirm the WebDAV URL format is correct
865+
- Verify that authentication credentials are valid
866+
- Check if the API key has mount permission
868867

869868
2. **Permission Errors**:
870869

871-
- Confirm the account has the required permissions
872-
- Administrator accounts should have full permissions
873-
- API keys need to have mount permission specifically enabled
870+
- Confirm the account has the required permissions
871+
- Administrator accounts should have full permissions
872+
- API keys need to have mount permission specifically enabled
874873

875874
3. **⚠️⚠️ WebDAV Upload Issues**:
876875

877-
- The upload size for webdav deployed by Workers may be limited by CF's CDN restrictions to around 100MB, resulting in a 413 error.
878-
- For Docker deployments, just pay attention to the nginx proxy configuration, any upload mode is acceptable
876+
- The upload size for webdav deployed by Workers may be limited by CF's CDN restrictions to around 100MB, resulting in a 413 error.
877+
- For Docker deployments, just pay attention to the nginx proxy configuration, any upload mode is acceptable
879878

880879
</details>
881880

@@ -933,8 +932,8 @@ location /dav {
933932

934933
4. **Configure environment variables**
935934

936-
- In the `backend` directory, create a `wrangler.toml` file to set development environment variables
937-
- In the `frontend` directory, configure the `.env.development` file to set frontend environment variables
935+
- In the `backend` directory, create a `wrangler.toml` file to set development environment variables
936+
- In the `frontend` directory, configure the `.env.development` file to set frontend environment variables
938937

939938
5. **Start development servers**
940939

@@ -952,18 +951,37 @@ location /dav {
952951

953952
```
954953
CloudPaste/
955-
├── frontend/ # Frontend Vue.js application
956-
│ ├── src/ # Source code
957-
│ │ ├── components/ # Vue components
958-
│ │ ├── api/ # API clients and services
959-
│ │ ├── i18n/ # Internationalization resource files
960-
│ │ ├── utils/ # Utility functions
961-
│ │ └── assets/ # Static assets
962-
│ └── ...
963-
└── backend/ # Cloudflare Workers backend
964-
├── worker.js # Main Worker file
965-
├── schema.sql # D1 database schema
966-
└── ...
954+
├── frontend/ # Frontend Vue.js application
955+
│ ├── src/
956+
│ │ ├── api/ # API clients and service layer
957+
│ │ ├── components/ # Vue components
958+
│ │ ├── composables/ # Vue 3 Composition API
959+
│ │ ├── stores/ # Pinia state management
960+
│ │ ├── views/ # Page views
961+
│ │ ├── router/ # Vue Router configuration
962+
│ │ ├── i18n/ # Internationalization resource files
963+
│ │ ├── utils/ # Utility functions
964+
│ │ └── assets/ # Static assets
965+
│ └── package.json
966+
├── backend/ # Cloudflare Workers backend
967+
│ ├── src/
968+
│ │ ├── routes/ # API routing layer
969+
│ │ ├── services/ # Business logic layer
970+
│ │ ├── storage/ # Storage abstraction layer (S3 drivers, mount management)
971+
│ │ ├── middlewares/ # Middleware layer
972+
│ │ ├── webdav/ # WebDAV protocol implementation
973+
│ │ ├── repositories/ # Data access layer
974+
│ │ ├── cache/ # Cache management system
975+
│ │ ├── constants/ # Constants definition
976+
│ │ └── utils/ # Utility functions
977+
│ ├── workers.js # Cloudflare Workers entry file
978+
│ ├── schema.sql # D1 database schema definition
979+
│ ├── wrangler.toml # Cloudflare Workers configuration
980+
│ └── package.json
981+
├── docker/ # Docker deployment configuration
982+
├── Api-doc.md # Complete API documentation
983+
├── Api-s3_direct.md # S3 direct upload API documentation
984+
└── README.md # Project documentation
967985
```
968986
969987
### Custom Docker Build
@@ -1044,20 +1062,18 @@ Apache License 2.0
10441062
This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.
10451063

10461064
## ❤️ Contribution
1047-
- **Sponsorship**: Maintaining a project is not easy. If you like this project, consider giving the author a little encouragement. Every bit of your support is my motivation to keep going~
1065+
- **Sponsorship**: Maintaining the project is not easy. If you like this project, you can give the author a little encouragement. Every bit of your support is the motivation for me to move forward~
1066+
1067+
![image.png](./images/PayQrcode.png)
10481068

10491069
<a href="https://afdian.com/a/drag0n"><img width="200" src="https://pic1.afdiancdn.com/static/img/welcome/button-sponsorme.png" alt=""></a>
10501070

1051-
- **Sponsors**: A huge thank you to the following sponsors for their support of this project!
1071+
- **Sponsors**: A huge thank you to the following sponsors for their support of this project!!
10521072

1053-
[![Sponsors](https://afdian.730888.xyz/image)](https://afdian.com/a/drag0n)
1073+
[![Sponsors](https://afdian.730888.xyz/image)](https://afdian.com/a/drag0n)
10541074

1055-
- **Contributors**: Thank you to the following contributors for their selfless contributions to this project!
1075+
- **Contributors**: Thanks to the following contributors for their selfless contributions to this project!
10561076

10571077
[![Contributors](https://contrib.rocks/image?repo=ling-drag0n/CloudPaste)](https://github.com/ling-drag0n/CloudPaste/graphs/contributors)
10581078

1059-
## Star History
1060-
1061-
[![Star History Chart](https://api.star-history.com/svg?repos=ling-drag0n/CloudPaste&type=Date)](https://star-history.com/#ling-drag0n/CloudPaste&Date)
1062-
10631079
**If you think the project is good I hope you can give a free star✨✨, Thank you very much!**

README_CN.md

Lines changed: 40 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,7 @@
133133
- `S3_BUCKET_NAME`
134134
- `S3_ENDPOINT`
135135

136-
**以下教程可能过时 具体参考: [Cloudpaste在线部署文档](https://doc.cloudpaste.qzz.io)**
137-
136+
**以下教程可能过时 具体参考: [Cloudpaste 在线部署文档](https://doc.cloudpaste.qzz.io)**
138137

139138
<details>
140139
<summary><b>👉 查看完整部署教程</b></summary>
@@ -875,7 +874,7 @@ location /dav {
875874

876875
3. **⚠️⚠️ Webdav 上传问题**:
877876

878-
- Worker部署的webdav上传大小可能受限于CF的CDN限制 100MB左右,导致报错413
877+
- Worker 部署的 webdav 上传大小可能受限于 CF 的 CDN 限制 100MB 左右,导致报错 413
879878
- 对于 Docker 部署,只需注意 nginx 代理配置,上传模式任意。
880879

881880
</details>
@@ -953,18 +952,37 @@ location /dav {
953952

954953
```
955954
CloudPaste/
956-
├── frontend/ # 前端 Vue.js 应用
957-
│ ├── src/ # 源代码
958-
│ │ ├── components/ # Vue 组件
959-
│ │ ├── api/ # API 客户端和服务
960-
│ │ ├── i18n/ # 国际化资源文件
961-
│ │ ├── utils/ # 工具函数
962-
│ │ └── assets/ # 静态资源
963-
│ └── ...
964-
└── backend/ # Cloudflare Workers 后端
965-
├── worker.js # 主要 Worker 文件
966-
├── schema.sql # D1 数据库模式
967-
└── ...
955+
├── frontend/ # 前端 Vue.js 应用
956+
│ ├── src/
957+
│ │ ├── api/ # API 客户端和服务层
958+
│ │ ├── components/ # Vue 组件
959+
│ │ ├── composables/ # Vue 3 组合式 API
960+
│ │ ├── stores/ # Pinia 状态管理
961+
│ │ ├── views/ # 页面视图
962+
│ │ ├── router/ # Vue Router 配置
963+
│ │ ├── i18n/ # 国际化资源文件
964+
│ │ ├── utils/ # 工具函数
965+
│ │ └── assets/ # 静态资源
966+
│ └── package.json
967+
├── backend/ # Cloudflare Workers 后端
968+
│ ├── src/
969+
│ │ ├── routes/ # API 路由层
970+
│ │ ├── services/ # 业务逻辑层
971+
│ │ ├── storage/ # 存储抽象层(S3 驱动、挂载点管理)
972+
│ │ ├── middlewares/ # 中间件层
973+
│ │ ├── webdav/ # WebDAV 协议实现
974+
│ │ ├── repositories/ # 数据访问层
975+
│ │ ├── cache/ # 缓存管理系统
976+
│ │ ├── constants/ # 常量定义
977+
│ │ └── utils/ # 工具函数
978+
│ ├── workers.js # Cloudflare Workers 入口文件
979+
│ ├── schema.sql # D1 数据库架构定义
980+
│ ├── wrangler.toml # Cloudflare Workers 配置
981+
│ └── package.json
982+
├── docker/ # Docker 部署配置
983+
├── Api-doc.md # 完整 API 文档
984+
├── Api-s3_direct.md # S3 直传 API 文档
985+
└── README.md # 项目说明文档
968986
```
969987
970988
### 自定义 Docker 构建
@@ -1045,16 +1063,20 @@ Apache License 2.0
10451063
本项目使用 Apache License 2.0 许可证 - 详情请参阅 [LICENSE](LICENSE) 文件。
10461064

10471065
## ❤️ 贡献
1066+
10481067
- **赞助**:项目维护不易,喜欢本项目的话,可以作者大大一点小小的鼓励哦,您的每一份支持都是我前进的动力\~
10491068

1069+
![image.png](./images/PayQrcode.png)
1070+
10501071
<a href="https://afdian.com/a/drag0n"><img width="200" src="https://pic1.afdiancdn.com/static/img/welcome/button-sponsorme.png" alt=""></a>
10511072

1052-
- **赞助者**:非常感谢以下赞助者对本项目的支持!!
1073+
- **赞助者**:非常感谢以下赞助者对本项目的支持!!
10531074

1054-
[![赞助者](https://afdian.730888.xyz/image)](https://afdian.com/a/drag0n)
1075+
[![赞助者](https://afdian.730888.xyz/image)](https://afdian.com/a/drag0n)
10551076

10561077
- **Contributors**:感谢以下贡献者对本项目的无私贡献!
1057-
[![Contributors](https://contrib.rocks/image?repo=ling-drag0n/CloudPaste)](https://github.com/ling-drag0n/CloudPaste/graphs/contributors)
1078+
1079+
[![Contributors](https://contrib.rocks/image?repo=ling-drag0n/CloudPaste)](https://github.com/ling-drag0n/CloudPaste/graphs/contributors)
10581080

10591081
## Star History
10601082

images/PayQrcode.png

50.5 KB
Loading

0 commit comments

Comments
 (0)