docs: add s3 storage plan and config example

This commit is contained in:
2026-01-17 22:12:18 +08:00
parent 79146434a8
commit bb62cf4280
2 changed files with 116 additions and 0 deletions

View File

@@ -251,3 +251,28 @@ Env = "dev"
# 指标(毫秒,可选)
# MetricReaderIntervalMs = 10000 # 指标导出周期
# RuntimeReadMemStatsIntervalMs = 5000 # 运行时指标采集最小周期
# =========================
# 存储配置 (providers/storage)
# =========================
[Storage]
# 存储类型local | s3
Type = "s3"
# AccessKeyS3/MinIO
AccessKey = "your-access-key"
# SecretKeyS3/MinIO
SecretKey = "your-secret-key"
# RegionS3/MinIO
Region = "ap-southeast-1"
# BucketS3/MinIO
Bucket = "quyun-assets"
# EndpointS3/MinIOAWS 示例https://s3.amazonaws.com
Endpoint = "https://s3.amazonaws.com"
# PathStyleS3/MinIOMinIO 通常为 true
PathStyle = false
# 本地存储路径local 使用)
LocalPath = "./storage"
# 签名密钥local 使用)
Secret = "your-storage-secret"
# 公共访问URL前缀local 使用)
BaseURL = "http://localhost:8080/t/<tenantCode>/v1/storage"