chore: .gitignore and README updates
Made-with: Cursor
This commit is contained in:
@@ -18,3 +18,15 @@ export const strictRateLimiter = rateLimit({
|
||||
standardHeaders: true,
|
||||
legacyHeaders: false,
|
||||
});
|
||||
|
||||
/** Stricter limit for RPC-heavy /api/v1/omnl/* (stacks with apiRateLimiter). */
|
||||
const omnlWindowMs = parseInt(process.env.OMNL_RATE_LIMIT_WINDOW_MS || '60000', 10);
|
||||
const omnlMax = parseInt(process.env.OMNL_RATE_LIMIT_MAX || '30', 10);
|
||||
|
||||
export const omnlRateLimiter = rateLimit({
|
||||
windowMs: omnlWindowMs,
|
||||
max: omnlMax,
|
||||
message: 'Too many OMNL API requests from this IP, please try again later.',
|
||||
standardHeaders: true,
|
||||
legacyHeaders: false,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user