Files
oss/config.yml

82 lines
2.9 KiB
YAML
Raw Permalink Normal View History

server:
address: ":3008"
name: "oss"
workerId: 1
rate:
limit: 200
burst: 300
# Database.
database:
default:
- type: "pgsql"
host: "116.204.74.41"
port: "15432"
user: "postgres"
pass: "123456"
name: "oss"
role: "master"
maxIdle: "5"
maxOpen: "20"
maxLifetime: "60s"
charset: "utf8mb4" #数据库编码
debug: true
dryRun: false #空跑
createdAt: "created_at" # (可选)自动创建时间字段名称
updatedAt: "updated_at" # (可选)自动更新时间字段名称
deletedAt: "deleted_at" # (可选)软删除时间字段名称
timeMaintainDisabled: false # (可选)是否完全关闭时间更新特性为true时CreatedAt/UpdatedAt/DeletedAt都将失效
- type: "pgsql"
host: "116.204.74.41"
port: "15432"
user: "postgres"
pass: "123456"
name: "oss"
role: "slave"
maxIdle: "5"
maxOpen: "20"
maxLifetime: "60s"
charset: "utf8mb4" #数据库编码
debug: true
dryRun: false #空跑
createdAt: "created_at" # (可选)自动创建时间字段名称
updatedAt: "updated_at" # (可选)自动更新时间字段名称
deletedAt: "deleted_at" # (可选)软删除时间字段名称
timeMaintainDisabled: false # (可选)是否完全关闭时间更新特性为true时CreatedAt/UpdatedAt/DeletedAt都将失效
redis:
# 集群模式配置方法
default:
2026-01-31 14:24:27 +08:00
address: 116.204.74.41:6379
db: 0
idleTimeout: "60s" #连接最大空闲时间使用时间字符串例如30s/1m/1d
maxConnLifetime: "90s" #连接最长存活时间使用时间字符串例如30s/1m/1d
waitTimeout: "60s" #等待连接池连接的超时时间使用时间字符串例如30s/1m/1d
dialTimeout: "30s" #TCP连接的超时时间使用时间字符串例如30s/1m/1d
readTimeout: "30s" #TCP的Read操作超时时间使用时间字符串例如30s/1m/1d
writeTimeout: "30s" #TCP的Write操作超时时间使用时间字符串例如30s/1m/1d
maxActive: 100
consul:
2026-01-31 14:24:27 +08:00
address: 116.204.74.41:8500
# pass: jiahui8888
jaeger: #链路追踪
2026-01-31 14:24:27 +08:00
addr: 116.204.74.41:4318
# MinIO 连接配置
minio:
2026-01-31 14:24:27 +08:00
endpoint: "116.204.74.41:9000" # 核心:仅协议+主机+端口,无路径/末尾斜杠
2026-03-18 13:33:24 +08:00
accessKey: "admin" # 访问密钥(本地默认)
secretKey: "12345678" # 秘密密钥(本地默认)
secure: false # 本地 MinIO 关闭 SSL生产按需改为 true
region: "us-east-1" # 与 MinIO 服务端 REGION 一致(默认 us-east-1
# 文件上传服务地址与oss模块minio中的endpoint一致
2026-01-31 14:24:27 +08:00
filePrefix: "116.204.74.41:9000"
# 文件存储初始化容量大小配置
oss:
capacitySize: 500 #文件存储初始化容量单位MB
cache:
localTTL: 60
redisTTL: 300