dual check v0.1
This commit is contained in:
1 parent
78bad1fa3d
commit
c137299016
36 files changed
+3727
-81
No files matched your search
@@ -0,0 +1,35 @@
|
||||
# === 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: 900 # 会话过期时间(秒),默认 15 分钟
|
||||
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"
|
||||
Reference in new issue
Block a user