diff --git a/scripts/upgrade b/scripts/upgrade index f4bc256..fa76502 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -75,7 +75,7 @@ yunohost service add "$app" --description="httpsh on ttyd web terminal" --log="/ ynh_use_logrotate --non-append -ynh_add_fail2ban_config --logpath="/var/log/nginx/${domain}-error.log" --failregex="Regex to match into the log for a failed login" +ynh_add_fail2ban_config --logpath="/var/log/$app/$app.log" --failregex="^error: maximum authentication attempts exceeded for .* from $" #================================================= # RECONFIGURE THE APP (UPDATE CONF, APPLY MIGRATIONS...)