Fix jwt-token

This commit is contained in:
2025-09-10 12:18:12 +02:00
parent bbe05b0aa4
commit 5beff6b512
3 changed files with 7 additions and 1 deletions

View File

@@ -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