Files
toolbox/server/configs/config.yaml
T
2026-08-30 21:25:22 +08:00

36 lines
927 B
YAML
Raw 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.
# === DualCheck Server Config ===
# 生产环境敏感配置请用环境变量覆盖,不要把真实值提交到 git
# 环境变量前缀:DUALCHECK_(如 DUALCHECK_REDIS_ADDR)
server:
host: "0.0.0.0"
port: 8080
read_timeout: 15s
write_timeout: 15s
idle_timeout: 60s
redis:
addr: "192.168.64.7:6379"
password: "123456"
db: 0
pool_size: 100
rate_limit:
global_rps: 1000
per_ip_rps: 50
burst: 100
session:
ttl: 604800 # 会话 Redis TTL(秒),默认 7 天。实际生命周期由发起方在线决定(发起方断开即结束),TTL 只是兜底防止发起方异常下线时 Redis 泄漏
max_text_length: 10000 # 单条文本最大长度
log:
level: "info" # debug / info / warn / error
format: "json" # json / console
cors:
allowed_origins:
- "http://localhost:3000"
- "http://localhost:8080"
- "http://localhost:5173"