mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-31 22:20:03 +02:00
set max on upload rate limit
This commit is contained in:
@@ -21,6 +21,7 @@ exports.ratelimit = helpers.try(async (req, res, next) => {
|
||||
if (!cache) {
|
||||
cache = cacheCreate({
|
||||
name: 'upload-rate-limit-cache',
|
||||
max: 100,
|
||||
ttl: meta.config.uploadRateLimitCooldown * 1000,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user