- 新增 api/upload/{init,chunk,merge} 入口与 ChunkUpload 模块(5MB 分片、3 并发、Redis 状态机)
- 5 场景接入:文件柜 / 聊天 / 任务附件 / 头像&系统图片 / 编辑器粘贴
- 秒传:同用户同 hash 复用 FileContent 物理文件,零传输
- 续传:Redis + localStorage 双索引,24h TTL
- 与老接口对齐:pid 锁、≤300 上限、webkit_relative_path 目录递归、overwrite 替换语义
- init 阶段读 file_upload_limit 拦截超限,避免传完分片才报错
- DeleteTmpTask 加 tmp_chunks case 兜底清理 24h 未合并目录
- files 表新增 hash 列(migration)
- 前端 chunkedUpload wrapper:主线程 spark-md5 流式 + 指数退避重试
- ai-kb 同步:upload / file-upload-limit / upload-size-limit 三个 chunk
DooTask - Open Source Task Management System
English | 中文文档
QQ Group
- Group Number:
546574618
Installation Requirements
- Required:
Docker v20.10+andDocker Compose v2.0+ - Supported Systems:
CentOS/Debian/Ubuntu/macOSand other Linux/Unix systems - Hardware Recommendation: 2+ cores, 4GB+ memory
- Database: MariaDB (provided by the default Docker Compose
mariadbservice) - Special Note: Windows users can install Linux environment using WSL2 before installing DooTask.
Deploy Project
Option 1: One-line script (recommended)
Run it in an empty directory to clone and install automatically; run it inside an existing installation to check and upgrade:
curl -fsSL https://raw.githubusercontent.com/kuaifan/dootask/pro/bin/install | bash
Option 2: Manual deployment
# 1、Clone the project to your local machine or server
# Clone project from GitHub
git clone --depth=1 https://github.com/kuaifan/dootask.git
# Or you can use Gitee
git clone --depth=1 https://gitee.com/aipaw/dootask.git
# 2、Enter directory
cd dootask
# 3、One-click installation (Custom port installation: ./cmd install --port 80)
./cmd install
Reset Password
# Reset default administrator password
./cmd repassword
Change Port
# This method only changes HTTP port. For HTTPS port, please read SSL configuration below
./cmd port 80
Stop Service
./cmd down
Start Service
./cmd up
Development & Build
Please ensure you have installed NodeJs 20+
# Development mode
./cmd dev
# Build project (This is for web client. For desktop apps, refer to ".github/workflows/publish.yml")
./cmd prod
SSL Configuration
Method 1: Automatic Configuration
# Run command and follow the prompts
./cmd https
Method 2: Nginx Proxy Configuration
# 1、Add Nginx proxy configuration
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# 2、Run command (To cancel Nginx proxy configuration: ./cmd https close)
./cmd https agent
Upgrade & Update
Note: Please backup your data before upgrading!
Recommended: use the one-line script (run it inside an existing installation; it pulls the latest code and finishes the upgrade in a single run):
curl -fsSL https://raw.githubusercontent.com/kuaifan/dootask/pro/bin/install | bash
Or use the local command:
./cmd update
- If you encounter 502 errors after upgrade, run
./cmd reupto restart services.
Project Migration
After installing the new project, follow these steps to complete migration:
1、Backup the MariaDB database
# Run command in the old project
./cmd mysql backup
./cmd mysqlis the CLI subcommand name; backups run against the MariaDB container.
2、Copy the following files and directories from old project to the same paths in new project
Database backup filedocker/appstorepublic/uploads
3、Restore database to new project
# Run command in the new project
./cmd mysql recovery
Uninstall Project
./cmd uninstall
More Commands
./cmd help