feat: stricter rate limit

This commit is contained in:
Ayo Ayco 2025-08-07 18:59:15 +02:00
parent 290a13cc31
commit 4b46ba1ec3

View file

@ -10,13 +10,13 @@ const app = Fastify({ logger: true })
await app.register(import('@fastify/rate-limit'), {
global: true,
max: 25,
timeWindow: 1000 * 60,
timeWindow: 1000,
})
await app.setNotFoundHandler(
{
preHandler: app.rateLimit({
max: 100,
max: 10,
timeWindow: 1000,
}),
},