-
Hello,
Because this is not a normal Nginx installation, the path of the log files is different. Is the following Fail2Ban configuration OK?
Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It depends... If it is the log of gitlab location only (and nginx has also other locations or server/host sections, writing to default logpath), it'd be rather something like this: logpath = %(known/logpath)s
/var/log/gitlab/nginx/*error.log
Anyway you can check whether it'd find matches with:
(prerequisite is you have seen authentication failures, or simulated them by yourselves) |
Beta Was this translation helpful? Give feedback.
It depends...
If it is the log of gitlab location only (and nginx has also other locations or server/host sections, writing to default logpath), it'd be rather something like this:
logpath = %(known/logpath)s /var/log/gitlab/nginx/*error.log
%(known/logpath)s
is normally/var/log/nginx/*error.log
(depending on distro etc).Also it'd imply that the format of log by auth-failures from gitlab is the same than default nginx-error-log matching with nginx-http-auth filter (and it is written from nginx and not from gitlab self), otherwise you'd need different filter (and logpath), see #3566 (comment) for an example.
I don't think gitlab use…