diff --git a/bootstrap/edge/templates/crowdsec-acquis.yaml.tftpl b/bootstrap/edge/templates/crowdsec-acquis.yaml.tftpl index 5850a4d..16960ac 100644 --- a/bootstrap/edge/templates/crowdsec-acquis.yaml.tftpl +++ b/bootstrap/edge/templates/crowdsec-acquis.yaml.tftpl @@ -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 diff --git a/bootstrap/edge/templates/default.conf.tftpl b/bootstrap/edge/templates/default.conf.tftpl index da5e8de..271698e 100644 --- a/bootstrap/edge/templates/default.conf.tftpl +++ b/bootstrap/edge/templates/default.conf.tftpl @@ -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;