chore: .gitignore and README updates

Made-with: Cursor
This commit is contained in:
defiQUG
2026-04-21 22:00:55 -07:00
parent 843cdbf71c
commit 768168de5e
37 changed files with 505 additions and 118 deletions

View File

@@ -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,
});