Skip to content

Commit

Permalink
enable limiter
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson committed Nov 28, 2023
1 parent df8b355 commit 10d11e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions proxy/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ app.use(cors(corsOptions));


// Rate limiting middleware
/*const limiter = rateLimit({
const limiter = rateLimit({
windowMs: 15 * 60 * 1000, // 15 minutes
max: 100, // limit each IP to 100 requests per windowMs
});
*/

// Apply the rate limiter to all requests
//app.use(limiter);
app.use(limiter);

// Proxy endpoint
app.get("/proxy", async (req, res) => {
Expand Down

0 comments on commit 10d11e0

Please sign in to comment.