1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gitea_ynh.git synced 2024-09-03 20:36:22 +02:00

remove fail2ban

This commit is contained in:
Éric Gaspar 2023-02-24 10:09:24 +01:00
parent c195713b1a
commit 671706de8b
4 changed files with 6 additions and 6 deletions

View file

@ -59,7 +59,7 @@ ynh_use_logrotate
yunohost service add $app --description="Lightweight Git forge" --log="/var/log/$app/$app.log"
# Create a dedicated Fail2Ban config
ynh_add_fail2ban_config --logpath "/var/log/$app/gitea.log" --failregex ".*Failed authentication attempt for .* from <HOST>" --max_retry 5
#ynh_add_fail2ban_config --logpath "/var/log/$app/gitea.log" --failregex ".*Failed authentication attempt for .* from <HOST>" --max_retry 5
#=================================================
# ADD A CONFIGURATION

View file

@ -33,7 +33,7 @@ ynh_remove_logrotate
ynh_remove_nginx_config
# Remove the dedicated Fail2Ban config
ynh_remove_fail2ban_config
#ynh_remove_fail2ban_config
ynh_secure_remove --file="/var/log/$app"

View file

@ -52,9 +52,9 @@ yunohost service add $app --description="Lightweight Git forge" --log="/var/log/
ynh_restore_file --origin_path="/etc/logrotate.d/$app"
ynh_restore_file --origin_path="/etc/fail2ban/jail.d/$app.conf"
ynh_restore_file --origin_path="/etc/fail2ban/filter.d/$app.conf"
ynh_systemd_action --action=restart --service_name=fail2ban
#ynh_restore_file --origin_path="/etc/fail2ban/jail.d/$app.conf"
#ynh_restore_file --origin_path="/etc/fail2ban/filter.d/$app.conf"
#ynh_systemd_action --action=restart --service_name=fail2ban
#=================================================
# GENERIC FINALIZATION

View file

@ -64,7 +64,7 @@ ynh_use_logrotate --non-append
yunohost service add $app --description="Lightweight Git forge" --log="/var/log/$app/$app.log"
# Create a dedicated Fail2Ban config
ynh_add_fail2ban_config --logpath "/var/log/$app/gitea.log" --failregex ".*Failed authentication attempt for .* from <HOST>" --max_retry 5
#ynh_add_fail2ban_config --logpath "/var/log/$app/gitea.log" --failregex ".*Failed authentication attempt for .* from <HOST>" --max_retry 5
#=================================================
# ADD A CONFIGURATION