Skip to content

Commit

Permalink
fix: rate limiter
Browse files Browse the repository at this point in the history
  • Loading branch information
motebaya committed Apr 23, 2024
1 parent 590d7ae commit 9a83a0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/ratelimiter.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Utils from "../lib/Util.js";

export const rateLimiter = rateLimit({
windowMs: 24 * 60 * 60 * 1000,
max: 10,
max: 1,
keyGenerator: function (req) {
return req.headers["x-real-ip"];
},
Expand Down

0 comments on commit 9a83a0e

Please sign in to comment.