From f28f93a0945796615348fc53776a3eae18277bb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20-=20Le=20Filament?= <remi@le-filament.com> Date: Thu, 10 Jun 2021 06:03:23 +0200 Subject: [PATCH] Add nginx check for gitlab server --- templates/jail.Ubuntu20.j2 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/templates/jail.Ubuntu20.j2 b/templates/jail.Ubuntu20.j2 index 7653662..318e66e 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 -- GitLab