use real nginx log files for crowdsec
This commit is contained in:
parent
84bcb4b12d
commit
3b99ce0486
|
|
@ -1,7 +1,7 @@
|
|||
source: file
|
||||
filenames:
|
||||
- /var/log/nginx/access.log
|
||||
- /var/log/nginx/error.log
|
||||
- /var/log/nginx/crowdsec-access.log
|
||||
- /var/log/nginx/crowdsec-error.log
|
||||
labels:
|
||||
type: nginx
|
||||
force_inotify: true
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ map $request_uri $blocked_uris {
|
|||
~*(/\.env|/\.git|/\.aws|/wp-admin) 1;
|
||||
}
|
||||
|
||||
access_log /var/log/nginx/access.log;
|
||||
error_log /var/log/nginx/error.log warn;
|
||||
access_log /var/log/nginx/crowdsec-access.log;
|
||||
error_log /var/log/nginx/crowdsec-error.log warn;
|
||||
|
||||
limit_req_zone $binary_remote_addr zone=one:10m rate=10r/s;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue