This commit is contained in:
2026-01-07 10:42:09 +08:00
parent ddbae6f82a
commit ae482b7888

View File

@@ -158,16 +158,16 @@ ocr:
secret_key: "your-baidu-secret-key"
ratelimit:
requests: 5000
window: 60s
requests: 7500
window: 70s
# 每日请求限制配置
daily_ratelimit:
max_requests_per_day: 200 # 每日最大请求次数
max_requests_per_ip: 10 # 每个IP每日最大请求次数
max_requests_per_day: 300 # 每日最大请求次数
max_requests_per_ip: 15 # 每个IP每日最大请求次数
key_prefix: "daily_limit" # Redis键前缀
ttl: 24h # 键过期时间
max_concurrent: 5 # 最大并发请求数
max_concurrent: 8 # 最大并发请求数
# 安全配置
enable_ip_whitelist: false # 是否启用IP白名单