From: Bernhard Tittelbach Date: Mon, 20 Jul 2026 13:05:48 +0000 (+0200) Subject: don't write http redirects to log all the time X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=83c504988f4cd8129549bf8c0af383cb5d4ee17a;p=noc.git don't write http redirects to log all the time --- 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 }}!";