chore: Rate limiter audit (#3965)
* chore: Rate limiter audit api/users * Make requests required * api/collections * Remove checkRateLimit on FileOperation (now done at route level through rate limiter) * auth rate limit * Add metric logging when rate limit exceeded * Refactor to shared configs * test
This commit is contained in:
@@ -14,3 +14,15 @@ export default class MockRateLimiter {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
export const RateLimiterStrategy = new Proxy(
|
||||
{},
|
||||
{
|
||||
get() {
|
||||
return {
|
||||
duration: 60,
|
||||
requests: 10,
|
||||
};
|
||||
},
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user