chore: switch file storage default to minio and align deploy workflow

This commit is contained in:
chengkai3
2026-05-01 21:49:45 +08:00
parent 64d07df734
commit 04524d57dc
3 changed files with 278 additions and 4 deletions
+17
View File
@@ -747,3 +747,20 @@
- Flower 代理链路新增了对 `FLOWER_BASIC_AUTH``FLOWER_API_BASE_URL` 的配置依赖,配置不一致会导致监控页 502。
- `task-monitor` 改为按 worker 聚合调用,worker 数量多时会增加 API 聚合开销。
- `dispatchMode=scheduler_api` 需确保 `scheduler` 服务可达;默认 `celery_direct` 兼容旧行为。
## Work Log - 文件管理默认后端切换为 MinIO2026-05-01
- 背景:
- 需求要求“文件管理改成 MinIO”。
- 运行层(`docker-compose.yml` / `.env.example` / workflow 部署模板)已是 `MINIO_ENABLED=true`,但后端配置默认值仍为 `false`,在未显式配置环境变量时会回退为 VFS。
- 本次改动(最小改动):
- 文件:`api/app/core/config.py`
-`minio_enabled` 默认值从 `False` 调整为 `True`
- 影响:
- 在无环境变量覆盖时,`seed_service` 的默认存储后端与挂载将落到 `files.s3.default`MinIO)而非 `files.vfs.default`
- 若环境显式设置 `MINIO_ENABLED=false`,仍可回退 VFS。
- 验证:
- 代码走读确认 `seed_service._default_file_storage_backends/_default_file_storage_mounts` 基于 `settings.minio_enabled` 分支,默认行为已切换到 MinIO。