Files
cid/config.yml

49 lines
1.3 KiB
YAML
Raw Normal View History

2025-12-05 14:40:33 +08:00
server:
2025-12-09 13:32:43 +08:00
address : ":3001"
2025-12-09 16:10:45 +08:00
name: "cid"
2026-03-23 14:08:11 +08:00
workerId: 1
logPath: "resource/log/server"
logStdout: true
errorStack: true
2025-12-05 14:40:33 +08:00
rate:
limit: 200
burst: 300
2026-03-23 14:08:11 +08:00
# Database.
database:
default:
- type: "pgsql"
host: "localhost"
port: "5432"
user: "postgres"
pass: "123456"
name: "cid"
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
2025-12-05 14:40:33 +08:00
redis:
# 集群模式配置方法
default:
2026-01-31 14:24:27 +08:00
address: 116.204.74.41:6379
2025-12-05 14:40:33 +08:00
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
2025-12-05 14:40:33 +08:00
# pass: jiahui8888
jaeger: #链路追踪
2026-01-31 14:24:27 +08:00
addr: 116.204.74.41:4318