From 48760d1eb9239d55e316edd355c17a23db51f07e Mon Sep 17 00:00:00 2001 From: Daniel Frank Date: Sun, 11 Aug 2019 17:02:16 +0200 Subject: [PATCH] nginx: disable access log (global doesnt work...) --- hopglass-frontend.nix | 3 +++ nginx.nix | 3 --- roundcube.nix | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/hopglass-frontend.nix b/hopglass-frontend.nix index 9c5890f..26e4b4c 100644 --- a/hopglass-frontend.nix +++ b/hopglass-frontend.nix @@ -10,6 +10,9 @@ in forceSSL = true; enableACME = true; root = "${hopglass-fe}"; + extraConfig = '' + access_log off; + ''; locations."/" = { extraConfig = '' index index.html; diff --git a/nginx.nix b/nginx.nix index d57f0bf..38a1546 100644 --- a/nginx.nix +++ b/nginx.nix @@ -3,8 +3,5 @@ { services.nginx = { logError = "/dev/null"; - appendConfig = '' - access_log off; - ''; }; } diff --git a/roundcube.nix b/roundcube.nix index 255ef69..154a979 100644 --- a/roundcube.nix +++ b/roundcube.nix @@ -31,6 +31,9 @@ in forceSSL = config.variables.useSSL; enableACME = config.variables.useSSL; root = "${roundcube}/public_html"; + extraConfig = '' + access_log off; + ''; locations."~ ^/favicon.ico/.*$" = { extraConfig = "try_files $uri kins/larry/images/$uri;"; };