Skip to content

Commit

Permalink
edit ratelimit
Browse files Browse the repository at this point in the history
  • Loading branch information
skysthelimitt committed Sep 3, 2024
1 parent 1830a42 commit 8bfdb9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ const __dirname = dirname(__filename);
const port = process.env.PORT || 3000;

const limiter = rateLimit({
windowMs: 5 * 60 * 1000,
limit: 200,
windowMs: 1 * 60 * 1000,
limit: 75,
standardHeaders: 'draft-7',
legacyHeaders: false,
message: "Your IP has sent too many requests, please wait up to 5 minutes to continue. Note: This only blocks pages such as profiles. You may use the rest of the website as normal."
message: "Your IP has sent too many requests, please wait up to a minute to continue. Note: This only blocks pages such as profiles. You may use the rest of the website as normal."
})


Expand Down

0 comments on commit 8bfdb9e

Please sign in to comment.