From dbb454710547236ff44480bd9f644e4b05ea5021 Mon Sep 17 00:00:00 2001 From: Bobby Wibowo Date: Fri, 29 Jul 2022 09:56:11 +0700 Subject: [PATCH] chore: keep comments of deprecated opts in config as easy reminders for older users --- config.sample.js | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/config.sample.js b/config.sample.js index a635320..7d6a513 100644 --- a/config.sample.js +++ b/config.sample.js @@ -210,6 +210,9 @@ module.exports = { */ trustProxy: true, + // DEPRECATED: Please use "rateLimiters" option below instead. + // rateLimits: [], + /* Rate limiters. https://github.com/animir/node-rate-limiter-flexible/wiki/Memory @@ -379,20 +382,7 @@ module.exports = { '.svg' ], - /* - An array of allowed ages for uploads (in hours). - - Default age will be the value at the very top of the array. - If the array is populated but do not have a zero value, - attempts to set permanent upload age will be rejected. - - This only applies to new files uploaded AFTER enabling the option. - If disabled, any existing temporary uploads will not ever be automatically deleted, - since the safe assumes all uploads are permanent, - and thus will not start the periodical check up task. - - DEPRECATED: Please use "retentionPeriods" option below instead. - */ + // DEPRECATED: Please use "retentionPeriods" option below instead. // temporaryUploadAges: [], /* @@ -566,6 +556,12 @@ module.exports = { force: false }, + // DEPRECATED: Please use "queryDatabaseForIdentifierMatch" option below instead. + // cacheFileIdentifiers: false, + + // DEPRECATED: Please use "queryDatabaseForIdentifierMatch" option below instead. + // queryDbForFileCollisions: true, + /* The service will query database on every new uploads, to make sure newly generated random identifier will not match any existing uploads.