fix: FileUploadRateLimit 10→200/小时,支持批量上传
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 43s
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 43s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
53a4cc118a
commit
b5de001dbb
@ -24,9 +24,9 @@ export const FeedbackRateLimit = () =>
|
|||||||
export const AiAnalysisRateLimit = () =>
|
export const AiAnalysisRateLimit = () =>
|
||||||
RateLimit({ key: 'ai', maxRequests: 50, windowSeconds: 86400 });
|
RateLimit({ key: 'ai', maxRequests: 50, windowSeconds: 86400 });
|
||||||
|
|
||||||
/** 文件上传:单用户每小时 10 次 */
|
/** 文件上传:单用户每小时 200 次 */
|
||||||
export const FileUploadRateLimit = () =>
|
export const FileUploadRateLimit = () =>
|
||||||
RateLimit({ key: 'upload', maxRequests: 10, windowSeconds: 3600 });
|
RateLimit({ key: 'upload', maxRequests: 200, windowSeconds: 3600 });
|
||||||
|
|
||||||
/** 管理员登录:单 IP 每 15 分钟 10 次 */
|
/** 管理员登录:单 IP 每 15 分钟 10 次 */
|
||||||
export const AdminLoginRateLimit = () =>
|
export const AdminLoginRateLimit = () =>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user