Fail2Ban and GitLab
by Jason.nix from LinuxQuestions.org on (#6K3HS)
Hello,
GitLab uses Nginx and PostgreSQL internally. I want to protect Nginx with Fail2Ban. The GitLab log directory contains the following files:
Code:# ls /var/log/gitlab/nginx/
access.log config current error.log gitlab_access.log gitlab_access.log.1.gz gitlab_error.log lockThe Fail2Ban configuration looks like this:
Code:[nginx-http-auth]
enabled = true
port = http,https
logpath = /var/log/gitlab/nginx/*error.log
findtime = 600
bantime = 7200
maxretry = 3Is it OK?
Thank you.
GitLab uses Nginx and PostgreSQL internally. I want to protect Nginx with Fail2Ban. The GitLab log directory contains the following files:
Code:# ls /var/log/gitlab/nginx/
access.log config current error.log gitlab_access.log gitlab_access.log.1.gz gitlab_error.log lockThe Fail2Ban configuration looks like this:
Code:[nginx-http-auth]
enabled = true
port = http,https
logpath = /var/log/gitlab/nginx/*error.log
findtime = 600
bantime = 7200
maxretry = 3Is it OK?
Thank you.