From a71c5a278fc94b6d301e6d93a1f9c9e40101682f Mon Sep 17 00:00:00 2001 From: Michael SCHAL Date: Mon, 2 Mar 2026 14:06:50 +0100 Subject: [PATCH] feat: Initialize the Express server with essential middleware, security, authentication, routing, and service configurations. --- server/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/index.ts b/server/index.ts index 2f42f58..a5d900c 100644 --- a/server/index.ts +++ b/server/index.ts @@ -39,19 +39,19 @@ app.use(helmet({ crossOriginEmbedderPolicy: false, })); -// Rate limiting global - 100 requêtes par 15 minutes par IP +// Rate limiting global - 1000 requêtes par 15 minutes par IP const globalLimiter = rateLimit({ windowMs: 15 * 60 * 1000, - max: 100, + max: 1000, message: { error: 'Trop de requêtes, réessayez plus tard' }, standardHeaders: true, legacyHeaders: false, }); -// Rate limiting strict pour l'authentification - 5 tentatives par 15 minutes +// Rate limiting pour l'authentification - 30 tentatives par 15 minutes const authLimiter = rateLimit({ windowMs: 15 * 60 * 1000, - max: 5, + max: 30, message: { error: 'Trop de tentatives de connexion, réessayez dans 15 minutes' }, standardHeaders: true, legacyHeaders: false,