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 481dcf0 commit 590d7ae
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: 1,
max: 10,
keyGenerator: function (req) {
return req.headers["x-real-ip"];
},
Expand Down

0 comments on commit 590d7ae

Please sign in to comment.