docs: add s3 storage plan and config example
This commit is contained in:
@@ -251,3 +251,28 @@ Env = "dev"
|
||||
# 指标(毫秒,可选)
|
||||
# MetricReaderIntervalMs = 10000 # 指标导出周期
|
||||
# RuntimeReadMemStatsIntervalMs = 5000 # 运行时指标采集最小周期
|
||||
|
||||
# =========================
|
||||
# 存储配置 (providers/storage)
|
||||
# =========================
|
||||
[Storage]
|
||||
# 存储类型:local | s3
|
||||
Type = "s3"
|
||||
# AccessKey(S3/MinIO)
|
||||
AccessKey = "your-access-key"
|
||||
# SecretKey(S3/MinIO)
|
||||
SecretKey = "your-secret-key"
|
||||
# Region(S3/MinIO)
|
||||
Region = "ap-southeast-1"
|
||||
# Bucket(S3/MinIO)
|
||||
Bucket = "quyun-assets"
|
||||
# Endpoint(S3/MinIO,AWS 示例:https://s3.amazonaws.com)
|
||||
Endpoint = "https://s3.amazonaws.com"
|
||||
# PathStyle(S3/MinIO,MinIO 通常为 true)
|
||||
PathStyle = false
|
||||
# 本地存储路径(local 使用)
|
||||
LocalPath = "./storage"
|
||||
# 签名密钥(local 使用)
|
||||
Secret = "your-storage-secret"
|
||||
# 公共访问URL前缀(local 使用)
|
||||
BaseURL = "http://localhost:8080/t/<tenantCode>/v1/storage"
|
||||
|
||||
Reference in New Issue
Block a user