mirror of
				https://github.com/YunoHost-Apps/send_ynh.git
				synced 2025-11-03 23:35:35 +01:00 
			
		
		
		
	cleaning
This commit is contained in:
		@@ -75,7 +75,7 @@ const conf = convict({
 | 
				
			|||||||
  max_downloads: {
 | 
					  max_downloads: {
 | 
				
			||||||
    format: Number,
 | 
					    format: Number,
 | 
				
			||||||
    default: 100,
 | 
					    default: 100,
 | 
				
			||||||
    env: 'MAX_DOWNLOADS'
 | 
					    env: '__MAX_DOWNLOADS__'
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  max_files_per_archive: {
 | 
					  max_files_per_archive: {
 | 
				
			||||||
    format: Number,
 | 
					    format: Number,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -16,27 +16,27 @@ services = ["__APP__"]
 | 
				
			|||||||
        default = 100
 | 
					        default = 100
 | 
				
			||||||
        help.en = "Choose the maximum file size allowed to send (in Mo)"
 | 
					        help.en = "Choose the maximum file size allowed to send (in Mo)"
 | 
				
			||||||
        help.fr = "Choisissez la taille maximale du fichier autorisé à envoyer (en Mo)"
 | 
					        help.fr = "Choisissez la taille maximale du fichier autorisé à envoyer (en Mo)"
 | 
				
			||||||
        bind = "max_file_size:__INSTALL_DIR__/server/config.js"
 | 
					        bind = "max_file_size:/var/www/__APP__/server/config.js"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        [main.config.max_download]
 | 
					        [main.config.max_downloads]
 | 
				
			||||||
        ask.en = "Max download"
 | 
					        ask.en = "Max downloads"
 | 
				
			||||||
        ask.fr = "Téléchargement maximal"
 | 
					        ask.fr = "Téléchargements maximal"
 | 
				
			||||||
        type = "number"
 | 
					        type = "number"
 | 
				
			||||||
        default = 100
 | 
					        default = 100
 | 
				
			||||||
        help.en = "Define the maximum download limit"
 | 
					        help.en = "Define the maximum download limit"
 | 
				
			||||||
        help.fr = "Définir la limite maximale du nombre de téléchargement"
 | 
					        help.fr = "Définir la limite maximale du nombre de téléchargement"
 | 
				
			||||||
        bind = "max_download:__INSTALL_DIR__/server/config.js"
 | 
					        bind = "max_downloads:/var/www/__APP__/server/config.js"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        [main.config.custom_title]
 | 
					        [main.config.custom_title]
 | 
				
			||||||
        ask.en = "Custom Title"
 | 
					        ask.en = "Custom Title"
 | 
				
			||||||
        ask.fr = "Titre personnalisé"
 | 
					        ask.fr = "Titre personnalisé"
 | 
				
			||||||
        type = "string"
 | 
					        type = "string"
 | 
				
			||||||
        help = "Add a custom title for Send"
 | 
					        help = "Add a custom title for Send"
 | 
				
			||||||
        bind = "custom_title:__INSTALL_DIR__/server/config.js"
 | 
					        bind = "custom_title:/var/www/__APP__/server/config.js"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        [main.config.custom_description]
 | 
					        [main.config.custom_description]
 | 
				
			||||||
        ask.en = "Custom Description"
 | 
					        ask.en = "Custom Description"
 | 
				
			||||||
        ask.fr = "Description personnalisée"
 | 
					        ask.fr = "Description personnalisée"
 | 
				
			||||||
        type = "string"
 | 
					        type = "string"
 | 
				
			||||||
        help = "Add a custom description for Send"
 | 
					        help = "Add a custom description for Send"
 | 
				
			||||||
        bind = "custom_description:__INSTALL_DIR__/server/config.js"
 | 
					        bind = "custom_description:/var/www/__APP__/server/config.js"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,2 +0,0 @@
 | 
				
			|||||||
The config file path is `__INSTALL_DIR__/server/config.js`.
 | 
					 | 
				
			||||||
You can configure things such as the max file size, max downloads, or max file expire time.
 | 
					 | 
				
			||||||
@@ -1,2 +0,0 @@
 | 
				
			|||||||
Le chemin du fichier de configuration est `__INSTALL_DIR__/server/config.js`.
 | 
					 | 
				
			||||||
Vous pouvez configurer des paramètres tels que les taille de fichier, nombre de téléchargements, ou temps d'expiration des fichiers maximums.
 | 
					 | 
				
			||||||
@@ -16,8 +16,8 @@ ynh_app_setting_set --key=custom_description --value="$custom_description"
 | 
				
			|||||||
max_file_size=100
 | 
					max_file_size=100
 | 
				
			||||||
ynh_app_setting_set --key=max_file_size --value="$max_file_size"
 | 
					ynh_app_setting_set --key=max_file_size --value="$max_file_size"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
max_download=100
 | 
					max_downloads=100
 | 
				
			||||||
ynh_app_setting_set --key=max_download --value="$max_download"
 | 
					ynh_app_setting_set --key=max_downloads --value="$max_downloads"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#=================================================
 | 
					#=================================================
 | 
				
			||||||
# INSTALL DEPENDENCIES
 | 
					# INSTALL DEPENDENCIES
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -23,9 +23,9 @@ if [ -z ${max_file_size:-} ]; then
 | 
				
			|||||||
	ynh_app_setting_set --key=max_file_size --value="$max_file_size"
 | 
						ynh_app_setting_set --key=max_file_size --value="$max_file_size"
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ -z ${max_download:-} ]; then
 | 
					if [ -z ${max_downloads:-} ]; then
 | 
				
			||||||
	max_download=100
 | 
						max_downloads=100
 | 
				
			||||||
	ynh_app_setting_set --key=max_download --value="$max_download"
 | 
						ynh_app_setting_set --key=max_downloads --value="$max_downloads"
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#=================================================
 | 
					#=================================================
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user