add fail2ban config

This commit is contained in:
Emmanuel Averty 2023-01-06 12:17:27 +01:00
parent b9641abcdd
commit be642106f1

View file

@ -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 ynh_mysql_connect_as "$db_user" "$db_password" "$dbname" < ../conf/login_source.sql
# SETUP FAIL2BAN # SETUP FAIL2BAN
## TODO fail2ban ynh_script_progression --message="Configuring fail2ban..."
# ynh_script_progression --message="Configuring fail2ban..." ynh_add_fail2ban_config --logpath "/var/log/$app/forgejo.log" --failregex ".*Failed authentication attempt for .* from <HOST>" --max_retry 5
# ynh_add_fail2ban_config --logpath "/var/log/$app/forgejo.log" --failregex ".*Failed authentication attempt for .* from <HOST>" --max_retry 5
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION