Skip to content

Commit

Permalink
fix: reduce rate limit to 50 requests per second per IP (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
brittonhayes authored Apr 27, 2024
1 parent b498e31 commit 139dda9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ const __dirname = path.dirname(__filename);

const limiter = rateLimit({
windowMs: 1000, // 1 second
max: 1000, // limit each IP to 1000 requests per windowMs
message: 'Rate limit of 1000 requests per second exceeded, try again in a second',
max: 50, // limit each IP to 50 requests per windowMs
message: 'Rate limit of 50 requests per second exceeded, try again in a second',
});

export default async () => {
Expand Down

0 comments on commit 139dda9

Please sign in to comment.