Project

General

Profile

Demande #4229

Augmenter les valeurs du formulaire

Added by Christian P. Momon over 4 years ago. Updated about 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.

History

#1

Updated by Christian P. Momon over 4 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: {

#2

Updated by Romain H. about 4 years ago

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

Updated by Christian P. Momon about 4 years ago

  • Target version set to Backlog
#4

Updated by Christian P. Momon about 4 years ago

  • Target version deleted (Backlog)

Also available in: Atom PDF