From be642106f13702ce120032479b558b387f0f0172 Mon Sep 17 00:00:00 2001 From: Emmanuel Averty Date: Fri, 6 Jan 2023 12:17:27 +0100 Subject: [PATCH] add fail2ban config --- scripts/install | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index eb9f076..b8f17d3 100644 --- a/scripts/install +++ b/scripts/install @@ -110,9 +110,8 @@ ynh_replace_string --match_string "__APP__" --replace_string "$app" --target_fil ynh_mysql_connect_as "$db_user" "$db_password" "$dbname" < ../conf/login_source.sql # SETUP FAIL2BAN -## TODO fail2ban -# ynh_script_progression --message="Configuring fail2ban..." -# ynh_add_fail2ban_config --logpath "/var/log/$app/forgejo.log" --failregex ".*Failed authentication attempt for .* from " --max_retry 5 +ynh_script_progression --message="Configuring fail2ban..." +ynh_add_fail2ban_config --logpath "/var/log/$app/forgejo.log" --failregex ".*Failed authentication attempt for .* from " --max_retry 5 #================================================= # GENERIC FINALIZATION