From cdc3e195df573355bfa414b69bafa1a7dbb1388d Mon Sep 17 00:00:00 2001 From: AlecM33 Date: Tue, 28 Dec 2021 00:59:00 -0500 Subject: [PATCH] up producton rate limit --- server/api/GamesAPI.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/api/GamesAPI.js b/server/api/GamesAPI.js index c65d4d5..82aebc9 100644 --- a/server/api/GamesAPI.js +++ b/server/api/GamesAPI.js @@ -10,12 +10,12 @@ const gameManager = new GameManager().getInstance(); const apiLimiter = rateLimit({ windowMs: 600000, - max: 3, + max: 5, standardHeaders: true, legacyHeaders: false, }) -if (process.env.NODE_ENV.trim() === 'production') { // in prod, limit clients to creating 3 games per 10 minutes. +if (process.env.NODE_ENV.trim() === 'production') { // in prod, limit clients to creating 5 games per 10 minutes. router.use('/create', apiLimiter); }