mirror of
https://framagit.org/YunoHost-Apps/gitea_ynh.git
synced 2026-11-23 18:12:37 +01:00
Add fail2ban
This commit is contained in:
1 parent
94bd56cc13
commit
7f9cc6a9a8
5 files changed
+284
No files matched your search
@@ -94,6 +94,11 @@ ynh_replace_string "__ADMIN__" "$admin" ../conf/login_source.sql
|
||||
ynh_replace_string "__APP__" "$app" ../conf/login_source.sql
|
||||
ynh_mysql_connect_as "$dbuser" "$dbpass" "$dbname" < ../conf/login_source.sql
|
||||
|
||||
#=================================================
|
||||
# SETUP FAIL2BAN
|
||||
#=================================================
|
||||
ynh_add_fail2ban_config "/var/log/$app/$app.log" ".*Failed authentication attempt for .* from <HOST>" 5
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
#=================================================
|
||||
|
||||
Reference in new issue
Block a user