From 83c504988f4cd8129549bf8c0af383cb5d4ee17a Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Mon, 20 Jul 2026 15:05:48 +0200 Subject: [PATCH] don't write http redirects to log all the time --- ansible/roles/nginx/templates/vhosts/default.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ansible/roles/nginx/templates/vhosts/default.j2 b/ansible/roles/nginx/templates/vhosts/default.j2 index 24e990d..e416593 100644 --- a/ansible/roles/nginx/templates/vhosts/default.j2 +++ b/ansible/roles/nginx/templates/vhosts/default.j2 @@ -6,6 +6,9 @@ server { include snippets/acmetool.conf; + access_log off; + error_log syslog:server=unix:/dev/log,facility=local1,severity=info; + location / { return 301 https://$host$request_uri; } @@ -25,6 +28,9 @@ server { include snippets/security-headers.conf; + access_log off; + error_log syslog:server=unix:/dev/log,facility=local1,severity=info; + location / { default_type text/plain; return 200 "Welcome to {{ ansible_host }}!"; -- 1.7.10.4