From a3119f810923b12a1f39646cfe25e2fdba8db06d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Tue, 26 Sep 2023 20:03:11 +0200 Subject: [PATCH] Fix fail2ban on upgrade --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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...)