set max on upload rate limit

This commit is contained in:
Barış Soner Uşaklı
2025-07-20 13:38:31 -04:00
parent eac3d0a043
commit 54fae3b12b

View File

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