mirror of
https://github.com/shuaiplus/nodewarden.git
synced 2026-11-05 02:40:21 +00:00
fix(security): harden auth and request limits
This commit is contained in:
1 parent
12af18e3a3
commit
d9a36fefe6
12 files changed
+315
-30
No files matched your search
@@ -62,6 +62,9 @@
|
||||
// Refresh-token grant budget per IP per minute.
|
||||
// refresh_token 授权每 IP 每分钟请求配额。
|
||||
refreshTokenRequestsPerMinute: 30,
|
||||
// Passwordless/auth-request creation budget per IP/email/device per minute.
|
||||
// 免密/设备审批请求创建接口每 IP/邮箱/设备每分钟配额。
|
||||
authRequestRequestsPerMinute: 5,
|
||||
// Fixed window size for API rate limiting in seconds.
|
||||
// API 限流固定窗口大小(秒)。
|
||||
apiWindowSeconds: 60,
|
||||
|
||||
Reference in new issue
Block a user