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 #=================================================