Fix jwt-token
This commit is contained in:
@@ -34,7 +34,7 @@ const io = new Server(server, {
|
||||
// Rate limiting (exclude detections endpoint for testing)
|
||||
const limiter = rateLimit({
|
||||
windowMs: parseInt(process.env.RATE_LIMIT_WINDOW_MS) || 15 * 60 * 1000, // 15 minutes
|
||||
max: parseInt(process.env.RATE_LIMIT_MAX_REQUESTS) || 100,
|
||||
max: parseInt(process.env.RATE_LIMIT_MAX_REQUESTS) || 1000, // Increased from 100 to 1000
|
||||
message: 'Too many requests from this IP, please try again later.',
|
||||
skip: (req) => {
|
||||
// Skip rate limiting for drone detection endpoints during testing
|
||||
|
||||
Reference in New Issue
Block a user