From dc4f9482963a072dc97c968ee8393aac592316d2 Mon Sep 17 00:00:00 2001 From: Olivier Falcoz Date: Thu, 18 Jan 2024 20:28:47 +0100 Subject: [PATCH] Update conf/config.js Changed max download . max duration --- conf/config.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/conf/config.js b/conf/config.js index 47fe7cc..43d1fe9 100644 --- a/conf/config.js +++ b/conf/config.js @@ -49,7 +49,7 @@ const conf = convict({ }, expire_times_seconds: { format: 'positive-int-array', - default: [300, 3600, 86400, 604800], + default: [300, 3600, 86400], env: 'EXPIRE_TIMES_SECONDS' }, default_expire_seconds: { @@ -59,12 +59,12 @@ const conf = convict({ }, max_expire_seconds: { format: Number, - default: 86400 * 7, + default: 86400 * 1, env: 'MAX_EXPIRE_SECONDS' }, download_counts: { format: 'positive-int-array', - default: [1, 2, 3, 4, 5, 20, 50, 100], + default: [1, 2, 3, 4, 5, 10], env: 'DOWNLOAD_COUNTS' }, default_downloads: { @@ -74,7 +74,7 @@ const conf = convict({ }, max_downloads: { format: Number, - default: 100, + default: 10, env: 'MAX_DOWNLOADS' }, max_files_per_archive: { @@ -155,7 +155,7 @@ const conf = convict({ }, max_file_size: { format: Number, - default: 1024 * 1024 * 1024 * 2.5, + default: 1024 * 1024 * 1024 * 2, env: 'MAX_FILE_SIZE' }, l10n_dev: {