aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/app.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/app.js b/lib/app.js
index 337b2e96..5019cda3 100644
--- a/lib/app.js
+++ b/lib/app.js
@@ -20,7 +20,8 @@ const app = fastify({
});
await app.register(import("@fastify/rate-limit"), {
- max: 50,
+ allowList: (req, key) => req.raw.url.includes("public"),
+ max: 100,
timeWindow: 2000,
keyGenerator: (req) => req.headers["cf-connecting-ip"],
});