1
0
forked from Git/send_ynh

1 Commits

2 changed files with 6 additions and 6 deletions

View File

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

View File

@ -40,7 +40,7 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=10
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" --keep="server/config.js"
ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep="server/config.js"
fi
chmod -R o-rwx "$install_dir"