Files
wuhan-saga/server/deploy/minio-spring-config.example.yml
王文昊 fc2510b567 fix(storage): 更新MinIO配置示例和应用配置
- 修改minio-spring-config.example.yml中的访问密钥和秘密密钥为默认值。
- 更新application.yml以使用环境变量覆盖MinIO密钥,并调整endpoint地址。
- 将上传存储类型更改为minio,并更新相关注释以提供更清晰的说明。
2026-05-08 15:49:46 +08:00

28 lines
871 B
YAML
Raw Permalink 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: minioadmin
secret-key: minioadmin
bucket: wuhan-saga
region: us-east-1