Files
wuhan-saga/server/deploy/minio-spring-config.example.yml
王文昊 4d347fc108 feat(storage): 添加MinIO对象存储支持
实现基于MinIO的对象存储功能,包括:
1. 新增MinioProperties配置类
2. 创建UploadStorage接口及Minio/Local实现
3. 重构MediaLibraryService使用统一存储接口
4. 添加MinIO模式下文件服务控制器
5. 提供docker-compose.minio.yml部署配置
6. 更新文档说明MinIO集成方式

支持本地存储和MinIO对象存储两种模式,可通过upload.storage配置切换
2026-05-07 14:52:06 +08:00

28 lines
860 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Spring Boot 使用 MinIO 时,在「生产配置」里增加或改成以下内容。
# 不要提交含真实生产密码的副本;交给运维时可另存为服务器上的 application-prod.yml。
#
# 启动示例java -jar wuhan-saga-server.jar --spring.profiles.active=prod
#
# 与运维 Docker 中环境变量的对应:
# MINIO_ROOT_USER -> minio.access-key
# MINIO_ROOT_PASSWORD -> minio.secret-key
# endpointSpring 所在机器能访问的 MinIO API9000。同机 Docker host 网络一般用 http://127.0.0.1:9000
# --- 下面粘贴进 application-prod.yml或通过 Nacos/环境变量等价提供)---
spring:
config:
activate:
on-profile: prod
upload:
storage: minio
path: uploads/
minio:
endpoint: http://127.0.0.1:9000
access-key: klp
secret-key: ruoyi123
bucket: wuhan-saga
region: us-east-1