1
0
forked from Git/send_ynh

Compare commits

..

3 Commits

Author SHA1 Message Date
dc4f948296 Update conf/config.js
Changed max download . max duration
2024-01-18 20:28:47 +01:00
OniriCorpe
923e6ed64b
Merge pull request #28 from YunoHost-Apps/testing
Testing v3.4.23~ynh3
2024-01-18 04:45:05 +01:00
OniriCorpe
6526b33b12
Merge pull request #27 from YunoHost-Apps/testing
Testing v3.4.23~ynh3
2024-01-17 05:22:52 +01:00

View File

@ -49,7 +49,7 @@ const conf = convict({
}, },
expire_times_seconds: { expire_times_seconds: {
format: 'positive-int-array', format: 'positive-int-array',
default: [300, 3600, 86400, 604800], default: [300, 3600, 86400],
env: 'EXPIRE_TIMES_SECONDS' env: 'EXPIRE_TIMES_SECONDS'
}, },
default_expire_seconds: { default_expire_seconds: {
@ -59,12 +59,12 @@ const conf = convict({
}, },
max_expire_seconds: { max_expire_seconds: {
format: Number, format: Number,
default: 86400 * 7, default: 86400 * 1,
env: 'MAX_EXPIRE_SECONDS' env: 'MAX_EXPIRE_SECONDS'
}, },
download_counts: { download_counts: {
format: 'positive-int-array', format: 'positive-int-array',
default: [1, 2, 3, 4, 5, 20, 50, 100], default: [1, 2, 3, 4, 5, 10],
env: 'DOWNLOAD_COUNTS' env: 'DOWNLOAD_COUNTS'
}, },
default_downloads: { default_downloads: {
@ -74,7 +74,7 @@ const conf = convict({
}, },
max_downloads: { max_downloads: {
format: Number, format: Number,
default: 100, default: 10,
env: 'MAX_DOWNLOADS' env: 'MAX_DOWNLOADS'
}, },
max_files_per_archive: { max_files_per_archive: {
@ -155,7 +155,7 @@ const conf = convict({
}, },
max_file_size: { max_file_size: {
format: Number, format: Number,
default: 1024 * 1024 * 1024 * 2.5, default: 1024 * 1024 * 1024 * 2,
env: 'MAX_FILE_SIZE' env: 'MAX_FILE_SIZE'
}, },
l10n_dev: { l10n_dev: {