new-api icon indicating copy to clipboard operation
new-api copied to clipboard

fix(rate-limit): disable global web rate limit by default

Open forgottener opened this issue 7 months ago • 0 comments

Summary

Web 端全局限流 (GlobalWebRateLimit) 默认开启,导致正常使用 Dashboard 时频繁触发 429 错误("请求次数过多,请稍后再试")。

对于 Web 端请求,这个限流策略过于激进(60次/180秒,基于 IP),在多用户共享出口 IP 的场景下尤其容易误伤。

Changes

  • [ ] 将 GLOBAL_WEB_RATE_LIMIT_ENABLE 默认值从 true 改为 false
  • [ ] 同步更新文档说明

Notes

  • 仍可通过环境变量 GLOBAL_WEB_RATE_LIMIT_ENABLE=true 手动开启
  • API 限流 (GlobalAPIRateLimit) 和关键操作限流 (CriticalRateLimit) 不受影响

forgottener avatar Apr 18 '26 16:04 forgottener