diff --git a/templates/jail.Ubuntu20.j2 b/templates/jail.Ubuntu20.j2 index 7653662cccb207521c1d9878a54a291a7131399a..318e66e0a78dbacde4b30fbd71f181fcfa8ce355 100644 --- a/templates/jail.Ubuntu20.j2 +++ b/templates/jail.Ubuntu20.j2 @@ -298,6 +298,24 @@ findtime = 1d logpath = /var/log/fail2ban.log +{% if inventory_hostname in groups.gitlab %} +# +# HTTP servers +# + +[nginx-http-auth] +enabled = true +port = http,https +logpath = /var/log/gitlab/nginx/*error.log + +[nginx-botsearch] +enabled = true +port = http,https +logpath = /var/log/gitlab/nginx/*error.log +maxretry = 3 + + +{% endif %} {% if inventory_hostname in groups.odoo_server or inventory_hostname in groups.owncloud_server %} # # HTTP servers