From 3b99ce04865ca88c3e4cc3c7f614513e961c2653 Mon Sep 17 00:00:00 2001 From: "juvenal.diaz" Date: Mon, 28 Sep 2026 09:06:41 -0600 Subject: [PATCH] use real nginx log files for crowdsec --- bootstrap/edge/templates/crowdsec-acquis.yaml.tftpl | 4 ++-- bootstrap/edge/templates/default.conf.tftpl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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;