Hello,
GitLab uses Nginx and PostgreSQL internally. I want to protect Nginx with Fail2Ban. The GitLab log directory contains the following files:
# ls /var/log/gitlab/nginx/
access.log config current error.log gitlab_access.log gitlab_access.log.1.gz gitlab_error.log lock
Is the following Fail2Ban configuration OK?
[nginx-http-auth]
enabled = true
port = http,https
logpath = /var/log/gitlab/nginx/*error.log
findtime = 600
bantime = 7200
maxretry = 3
Thank you.
|