From 9847ecb934c3a8aa708f578fdbc473b112d54433 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Fri, 3 Mar 2023 16:10:09 +0100 Subject: [PATCH] Update install --- scripts/install | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/install b/scripts/install index 130f8fe..efbdf30 100755 --- a/scripts/install +++ b/scripts/install @@ -55,6 +55,14 @@ mkdir /var/log/$app/ touch /var/log/$app/$app.log chown -R $app: /var/log/$app/ +# Use logrotate to manage application logfile(s) +ynh_use_logrotate + +# Create a dedicated Fail2Ban config +ynh_add_fail2ban_config --logpath="/var/log/nginx/${domain}-error.log" --failregex="Regex to match into the log for a failed login" + + + #================================================= # CONFIGURE THE INSTALL SCRIPT #=================================================