From 4188112693b37c58f8745e599d3a617a690a4466 Mon Sep 17 00:00:00 2001 From: Akeko Date: Wed, 13 Mar 2024 09:11:29 +0100 Subject: [PATCH] fix(bruteforce): ip address for prod cache --- server/routes/auth.routes.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/server/routes/auth.routes.js b/server/routes/auth.routes.js index c98d291..ea1dd64 100644 --- a/server/routes/auth.routes.js +++ b/server/routes/auth.routes.js @@ -14,9 +14,12 @@ if (process.env.ENVIRONMENT == "dev") { store = new ExpressBrute.MemoryStore(); // stores state locally, don't use this in production } else { // stores state with memcached - store = new MemcachedStore(["127.0.0.1"], { - prefix: "NoConflicts", - }); + store = new MemcachedStore( + ["3.75.158.163", "3.125.183.140", "35.157.117.28"], + { + prefix: "NoConflicts", + } + ); } let failCallback = function (req, res, next, nextValidRequestDate) {