1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jirafeau_ynh.git synced 2024-09-03 19:35:53 +02:00
* 4.4.0 (#94)

* 4.4.0

* Auto-update README

* Apply example_ynh

* Auto-update README

* Update manifest.json

* [autopatch] Add Common Platform Enumeration id to `manifest.json` (#99)

* Upgrade  (#98)

* 4.4.0 (#94)

* 4.4.0

* Auto-update README

* Apply example_ynh

* Auto-update README

* Update manifest.json

Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* [autopatch] Add Common Platform Enumeration id to `manifest.json`

Co-authored-by: yalh76 <yalh@yahoo.com>
Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
Co-authored-by: Yunohost-Bot <>

* Auto-update README

* Bullseye (#100)

* Auto-update README

* PHP shouldn't allow `array(foobar)` to work if foobar is undefined...

* Upgrade to bullseye

* Auto-update README

* Auto-update README

* Fix

Co-authored-by: yunohost-bot <yunohost@yunohost.org>
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>

* set relative path for --keep opt

* 4.5.0

* Auto-update README

* Auto-update README

* Fix PHP

* Version 2 (#105)

* v2

* Auto-update README

* v2

* Auto-update README

* Update upgrade

---------

Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* add crypt (#106)

* add crypt

* Update manifest.toml

* Update install

* cleaning

* Auto-update README

---------

Co-authored-by: yalh76 <yalh@yahoo.com>
Co-authored-by: yunohost-bot <yunohost@yunohost.org>
Co-authored-by: YunoHost Bot <yunohost-bot@users.noreply.github.com>
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
Éric Gaspar 2023-07-29 11:58:16 +01:00 committed by GitHub
parent 505ee734fc
commit a6f6a77ac1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 26 additions and 10 deletions

View file

@ -19,7 +19,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
Jirafeau offers the possibility to host and share your files with ease. Choose a file, Jirafeau will provide you with a link with many options. It is possible to protect your links with a password as well as to choose how long the file will be kept on the server. The file and the link will self-destruct after this time. Downloads of transmitted files can be limited to a certain date, and each file can self-destruct after the first download. Jirafeau allows you to configure maximum retention times and maximum size per file. Encryption is available as an option.
**Shipped version:** 4.5.0~ynh1
**Shipped version:** 4.5.0~ynh2
**Demo:** https://demo.yunohost.org/jirafeau/

View file

@ -19,7 +19,7 @@ Si vous navez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
Jirafeau offre la possibilité d'héberger et de partager vos fichiers, le tout en toute simplicité. Choisissez un fichier, Jirafeau vous fournira un lien avec beaucoup d'options. Il est possible de protéger vos liens avec mot de passe ainsi que de choisir la durée de rétention du fichier sur le serveur. Le fichier et le lien s'autodétruiront passé ce délai. Les téléchargements des fichiers transmis peuvent être limités à une certaine date, et chaque fichier peut s'autodétruire après le premier téléchargement. Jirafeau permet de configurer les temps maximum de rétention ainsi que la taille maximale par fichier. Le chiffrement est disponible en option.
**Version incluse :** 4.5.0~ynh1
**Version incluse :** 4.5.0~ynh2
**Démo :** https://demo.yunohost.org/jirafeau/

View file

@ -62,7 +62,7 @@ $cfg['preview'] = true;
/* Enable the encryption feature
* By enabling it, file-level deduplication won't work anymore. See FAQ.
*/
$cfg['enable_crypt'] = false;
$cfg['enable_crypt'] = __ENABLE_CRYPT__;
/* Length of link reference
*/

View file

@ -3,6 +3,17 @@ version = "1.0"
[main]
name = "Jirafeau configuration"
[main.encrypt]
name = "Encryption feature"
[main.encrypt.enable_crypt]
ask = "Enable the encryption feature"
type = "boolean"
yes = true
no = false
help = "By enabling encryption feature, file-level deduplication won't work anymore."
bind = "ENABLE_CRYPT:__INSTALL_DIR__/lib/config.local.php"
[main.php_fpm_config]
name = "PHP-FPM configuration"

View file

@ -1,9 +1,7 @@
## Configuration
### Changing the conditions of use of the service
The license text on the "Terms of Service" page, which is shipped with the default installation, is "based on the Open Source Initiative Terms of Service". To change this text simply copy the file `/lib/tos.original.txt`, rename it to `/lib/tos.local.txt` and adapt it to your own needs. If you update the installation, then only the `tos.original.txt` file may change eventually, not your `tos.local.txt file`.
## Administration
### Administration
To administer the files within Jirafeau it is enough to go to the address `__DOMAIN__/admin.php`.

View file

@ -1,9 +1,7 @@
## Configuration
### Changer les conditions d'utilisation du service
Le texte de la licence sur la page "Conditions d'utilisation du service", qui est livrée avec l'installation par défaut, est basé sur les "Conditions d'utilisation du service de l'Initiative Open Source". Pour modifier ce texte, il suffit de copier le fichier `/lib/tos.original.txt`, de le renommer en `/lib/tos.local.txt` et de l'adapter à vos propres besoins. Si vous mettez à jour l'installation, alors seul le fichier `tos.original.txt` peut changer éventuellement, et non votre fichier `tos.local.txt`.
## Administration
### Administration
Pour administrer les fichiers présents au sein de Jirafeau il suffit de se rendre à l'adresse `__DOMAIN__/admin.php`.

View file

@ -5,7 +5,7 @@ name = "Jirafeau"
description.en = "Upload a file in a simple way and give a unique link to it"
description.fr = "Hébergez simplement un fichier et partagez-le avec un lien unique"
version = "4.5.0~ynh1"
version = "4.5.0~ynh2"
maintainers = []

View file

@ -13,6 +13,8 @@ source /usr/share/yunohost/helpers
# RETRIEVE ARGUMENTS FROM THE MANIFEST
#=================================================
enable_crypt="false"
fpm_footprint="low"
fpm_free_footprint=0
fpm_usage="low"
@ -21,6 +23,7 @@ fpm_usage="low"
# STORE SETTINGS FROM MANIFEST
#=================================================
ynh_app_setting_set --app=$app --key=enable_crypt --value=$enable_crypt
ynh_app_setting_set --app=$app --key=fpm_footprint --value=$fpm_footprint
ynh_app_setting_set --app=$app --key=fpm_free_footprint --value=$fpm_free_footprint
ynh_app_setting_set --app=$app --key=fpm_usage --value=$fpm_usage

View file

@ -22,6 +22,12 @@ upgrade_type=$(ynh_check_app_version_changed)
#=================================================
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
# If enable_crypt doesn't exist, create it
if [ -z "${enable_crypt:-}" ]; then
enable_crypt=false
ynh_app_setting_set --app=$app --key=enable_crypt --value=$enable_crypt
fi
# If fpm_footprint doesn't exist, create it
if [ -z "${fpm_footprint:-}" ]; then
fpm_footprint=low