Project

General

Profile

Actions

Demande #4229

closed

Augmenter les valeurs du formulaire

Added by Christian P. Momon almost 5 years ago. Updated over 4 years ago.

Status:
Fermé
Priority:
Normale
Assignee:
Christian P. Momon
Target version:
-
Start date:
01/30/2020
Due date:
% Done:

0%

Estimated time:

Description

Lors du téléversement, le formulaire propose jusqu'à :
  • 5 téléchargements ;
  • ou 1 jour.

Ces valeurs peuvent sembler très faibles.

Demande : augmenter les valeurs.

Actions #1

Updated by Christian P. Momon almost 5 years ago

  • Status changed from Nouveau to Résolu
  • Assignee set to Christian P. Momon

En attendant une réflexion plus mûrie, dans le fichier /srv/drop.chapril.org/www/server/config.js, modification du paramétrage :

=(^-^)=root@drop:/srv/drop/www# git diff
diff --git a/server/config.js b/server/config.js
index 55cefc62..73a9a2ee 100644
--- a/server/config.js
+++ b/server/config.js
@@ -16,7 +16,7 @@ const conf = convict({
   },
   expire_times_seconds: {
     format: Array,
-    default: [300, 3600, 86400, 604800],
+    default: [300, 3600, 86400, 432000, 604800],
     env: 'EXPIRE_TIMES_SECONDS'
   },
   default_expire_seconds: {
@@ -31,7 +31,7 @@ const conf = convict({
   },
   anon_max_expire_seconds: {
     format: Number,
-    default: 86400,
+    default: 432000,
     env: 'ANON_MAX_EXPIRE_SECONDS'
   },
   download_counts: {
@@ -46,7 +46,7 @@ const conf = convict({
   },
   anon_max_downloads: {
     format: Number,
-    default: 5,
+    default: 100,
     env: 'ANON_MAX_DOWNLOADS'
   },
   max_files_per_archive: {

Actions #2

Updated by Romain H. almost 5 years ago

  • Status changed from Résolu to Fermé
Actions #3

Updated by Christian P. Momon over 4 years ago

  • Target version set to Backlog
Actions #4

Updated by Christian P. Momon over 4 years ago

  • Target version deleted (Backlog)
Actions

Also available in: Atom PDF