From 66187e605a4fcf9b07288d343e21d7839bc4a481 Mon Sep 17 00:00:00 2001 From: clerie Date: Wed, 15 Mar 2023 20:32:18 +0100 Subject: [PATCH] hosts/web-2: Tune logging for some vhosts --- hosts/web-2/clerie.nix | 3 +++ hosts/web-2/gitea.nix | 3 +++ hosts/web-2/iot-data.nix | 3 +++ 3 files changed, 9 insertions(+) diff --git a/hosts/web-2/clerie.nix b/hosts/web-2/clerie.nix index 6d8665b..896f905 100644 --- a/hosts/web-2/clerie.nix +++ b/hosts/web-2/clerie.nix @@ -32,6 +32,9 @@ ''; return = "200 ''"; }; + extraConfig = '' + access_log /var/log/nginx/clerie.de.log combined_anon; + ''; }; }; } diff --git a/hosts/web-2/gitea.nix b/hosts/web-2/gitea.nix index 3c3d37f..b536bbd 100644 --- a/hosts/web-2/gitea.nix +++ b/hosts/web-2/gitea.nix @@ -80,6 +80,9 @@ proxyPass = "http://localhost:3000"; }; }; + extraConfig = '' + access_log /var/log/nginx/git.clerie.de.log combined_anon; + ''; }; }; } diff --git a/hosts/web-2/iot-data.nix b/hosts/web-2/iot-data.nix index 2247f21..64da990 100644 --- a/hosts/web-2/iot-data.nix +++ b/hosts/web-2/iot-data.nix @@ -32,6 +32,9 @@ locations."/" = { proxyPass = "http://[::1]:8235"; }; + extraConfig = '' + access_log off; + ''; }; }; }