allow disabling of all rate limits (#505)

This commit is contained in:
Dan Jenkins authored and GitHub committed 2025-10-20 10:58:34 -04:00
1 parent 42f4318a17
commit 16dcd26216
2 files changed
+7 -1

No files matched your search

+6 -1
View File
@@ -170,7 +170,12 @@ if (process.env.JAMBONES_TRUST_PROXY) {
});
}
}
app.use(limiter);
const disableRateLimit = process.env.DISABLE_RATE_LIMITS === 'true' || process.env.DISABLE_RATE_LIMITS === '1';
if (!disableRateLimit) {
app.use(limiter);
}
app.use(helmet());
app.use(helmet.hidePoweredBy());
app.use(nocache());