From ba51a3e695d42477ebd5c788d69b867605ea7a13 Mon Sep 17 00:00:00 2001 From: Alexis IMBERT <97242148+Alexis-IMBERT@users.noreply.github.com> Date: Tue, 27 Feb 2024 20:03:24 +0100 Subject: [PATCH] Update app_nextcloud.fr.md Adding description to change configuration of fail2ban after modifying Nextcloud file of HDD --- .../10.docs/nextcloud/app_nextcloud.fr.md | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/pages/04.applications/10.docs/nextcloud/app_nextcloud.fr.md b/pages/04.applications/10.docs/nextcloud/app_nextcloud.fr.md index df64f74e..161485d1 100644 --- a/pages/04.applications/10.docs/nextcloud/app_nextcloud.fr.md +++ b/pages/04.applications/10.docs/nextcloud/app_nextcloud.fr.md @@ -134,6 +134,38 @@ sudo -u nextcloud php8.2 --define apc.enable_cli=1 /var/www/nextcloud/occ files: C'est terminé. À présent testez si tout va bien, essayez de vous connecter à votre instance Nextcloud, envoyer un fichier, vérifiez sa bonne synchronisation. +#### Changement de la configuration fail2ban +Pour éviter de faire planter le service fail2ban il faut changer sa configuration pour indiquer l'emplacement du fichier log. + +Dans le fichier `/etc/fail2ban/jail.d/nextcloud.conf` + +```bash +nano /etc/fail2ban/jail.d/nextcloud.conf +``` +Changer la ligne suivante : +```bash +CAS A : logpath = /home/yunohost.app/nextcloud/data/nextcloud.log => logpath = /media/stcokage/data/nextcloud.log +CAS B : logpath = /home/yunohost.app/nextcloud/data/nextcloud.log => logpath = /media/stcokage/nextcloud_data/nextcloud/data/nextcloud.log +``` + +Relancer le service fail2ban +```bash +systemctl restart fail2ban.service +``` + +Vérifier que le service est activé : +```bash +systemctl status fail2ban.service +``` +Vous devriez avoir noté `active` dans la réponse. + +#### Supression du dossier d'origine +Après vérification que tout fonctionne correctement vous pouvez supprimer le dossier d'origine : + +```bash +rm -r /home/yunohost.app/nextcloud +``` + ### Partager un dossier entre Nextcloud et une application Il est relativement simple de monter des dossiers accessibles depuis Nextcloud en lecture/écriture et de les partager avec d'autres applications (par exemple [Jellyfin](app_jellyfin), [Funkwhale](app_funkwhale), [Transmission](app_transmission), ...)