chore: keep comments of deprecated opts in config

as easy reminders for older users
This commit is contained in:
Bobby Wibowo 2022-07-29 09:56:11 +07:00
parent fae28f9aa2
commit dbb4547105
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -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.