mirror of
https://github.com/YunoHost-Apps/send_ynh.git
synced 2024-11-23 14:31:36 +01:00
cleaning
This commit is contained in:
parent
2e131bc450
commit
d3834d4bb3
@ -75,7 +75,7 @@ const conf = convict({
|
||||
max_downloads: {
|
||||
format: Number,
|
||||
default: 100,
|
||||
env: 'MAX_DOWNLOADS'
|
||||
env: '__MAX_DOWNLOADS__'
|
||||
},
|
||||
max_files_per_archive: {
|
||||
format: Number,
|
||||
|
@ -16,27 +16,27 @@ services = ["__APP__"]
|
||||
default = 100
|
||||
help.en = "Choose the maximum file size allowed to send (in 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]
|
||||
ask.en = "Max download"
|
||||
ask.fr = "Téléchargement maximal"
|
||||
[main.config.max_downloads]
|
||||
ask.en = "Max downloads"
|
||||
ask.fr = "Téléchargements maximal"
|
||||
type = "number"
|
||||
default = 100
|
||||
help.en = "Define the maximum download limit"
|
||||
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]
|
||||
ask.en = "Custom Title"
|
||||
ask.fr = "Titre personnalisé"
|
||||
type = "string"
|
||||
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]
|
||||
ask.en = "Custom Description"
|
||||
ask.fr = "Description personnalisée"
|
||||
type = "string"
|
||||
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
|
||||
ynh_app_setting_set --key=max_file_size --value="$max_file_size"
|
||||
|
||||
max_download=100
|
||||
ynh_app_setting_set --key=max_download --value="$max_download"
|
||||
max_downloads=100
|
||||
ynh_app_setting_set --key=max_downloads --value="$max_downloads"
|
||||
|
||||
#=================================================
|
||||
# INSTALL DEPENDENCIES
|
||||
|
@ -23,9 +23,9 @@ if [ -z ${max_file_size:-} ]; then
|
||||
ynh_app_setting_set --key=max_file_size --value="$max_file_size"
|
||||
fi
|
||||
|
||||
if [ -z ${max_download:-} ]; then
|
||||
max_download=100
|
||||
ynh_app_setting_set --key=max_download --value="$max_download"
|
||||
if [ -z ${max_downloads:-} ]; then
|
||||
max_downloads=100
|
||||
ynh_app_setting_set --key=max_downloads --value="$max_downloads"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
Loading…
Reference in New Issue
Block a user