fix: FileUploadRateLimit 10→200/小时,支持批量上传
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:
wangdl 2026-05-27 22:41:56 +08:00
parent 53a4cc118a
commit b5de001dbb

View File

@ -24,9 +24,9 @@ export const FeedbackRateLimit = () =>
export const AiAnalysisRateLimit = () =>
RateLimit({ key: 'ai', maxRequests: 50, windowSeconds: 86400 });
/** 文件上传:单用户每小时 10 次 */
/** 文件上传:单用户每小时 200 次 */
export const FileUploadRateLimit = () =>
RateLimit({ key: 'upload', maxRequests: 10, windowSeconds: 3600 });
RateLimit({ key: 'upload', maxRequests: 200, windowSeconds: 3600 });
/** 管理员登录:单 IP 每 15 分钟 10 次 */
export const AdminLoginRateLimit = () =>