Allow custom ratelimits

This commit is contained in:
Aaron Dewes
2021-04-29 16:31:13 +02:00
committed by GitHub
parent 1c4eb6d83a
commit b9a55f01d7
3 changed files with 5 additions and 2 deletions

View File

@@ -126,7 +126,7 @@ setInterval(updateDescribeGraph, 120000);
const rateLimit = require('express-rate-limit');
const postLimiter = rateLimit({
windowMs: 30 * 60 * 1000,
max: 100,
max: config.postRateLimit || 100,
});
router.post('/create', postLimiter, async function (req, res) {