增加时间处理组件

This commit is contained in:
2025-07-01 21:54:12 +08:00
parent 98336b9020
commit 318c6b5cc1
5 changed files with 40 additions and 8 deletions

View File

@ -13,7 +13,7 @@ module.exports = {
},
sse: {
heartbeatInterval: 15000, // 15秒
allowedOrigins: process.env.ALLOWED_ORIGINS?.split(',') || ['http://localhost:3001']
allowedOrigins: '*', //process.env.ALLOWED_ORIGINS?.split(',') || ['http://localhost:3001']
},
rateLimit: {
windowMs: 15 * 60 * 1000, // 15分钟