From 972ea530e8139a0357b6b45ccdf9742d19ba6a26 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 8 Mar 2024 04:31:34 +0000 Subject: validate tips --- lib/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/app.js') diff --git a/lib/app.js b/lib/app.js index d289de05..337b2e96 100644 --- a/lib/app.js +++ b/lib/app.js @@ -20,8 +20,8 @@ const app = fastify({ }); await app.register(import("@fastify/rate-limit"), { - max: 500, - timeWindow: 5000, + max: 50, + timeWindow: 2000, keyGenerator: (req) => req.headers["cf-connecting-ip"], }); -- cgit v1.2.3