initial role commit
This commit is contained in:
4
templates/fail2ban/filter.conf.j2
Normal file
4
templates/fail2ban/filter.conf.j2
Normal file
@@ -0,0 +1,4 @@
|
||||
# gitea.local
|
||||
[Definition]
|
||||
failregex = .*(Failed authentication attempt|invalid credentials|Attempted access of unknown user).* from <HOST>
|
||||
ignoreregex =
|
||||
11
templates/fail2ban/jail.conf.j2
Normal file
11
templates/fail2ban/jail.conf.j2
Normal file
@@ -0,0 +1,11 @@
|
||||
{# https://docs.gitea.com/administration/fail2ban-setup #}
|
||||
|
||||
[{{ gitea_fail2ban_jail_name }}]
|
||||
enabled = true
|
||||
filter = {{ gitea_fail2ban_filter }}
|
||||
port = {{ gitea_fail2ban_port }}
|
||||
logpath = {{ gitea_mounted_log_path }}
|
||||
maxretry = {{ gitea_fail2ban_jail_maxretry }}
|
||||
findtime = {{ gitea_fail2ban_jail_findtime }}
|
||||
bantime = {{ gitea_fail2ban_jail_bantime }}
|
||||
action = {{ gitea_fail2ban_jail_action }}
|
||||
Reference in New Issue
Block a user