Skip to content

Commit

Permalink
Merge pull request #925 from oslokommune/bump-rate-limit
Browse files Browse the repository at this point in the history
Bump API rate limit from 100/15min to 1000/5min
  • Loading branch information
simenheg authored Nov 13, 2023
2 parents 7fcc3b6 + b732ee2 commit 237abf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import statusRoutes from './routes/status.js';
import userRoutes from './routes/user.js';

const apiLimiter = rateLimit({
windowMs: 15 * 60 * 1000, // 15 minutes
max: 100, // max 100 requests per window
windowMs: 5 * 60 * 1000, // 5 minutes
max: 1000, // max 1000 requests per window
message: 'Too many requests, please try again later.',
});

Expand Down

0 comments on commit 237abf9

Please sign in to comment.