nginx: disable access log (global doesnt work...)

This commit is contained in:
Daniel Frank 2019-08-11 17:02:16 +02:00
parent eb46df56d2
commit 48760d1eb9
Signed by: tokudan
GPG key ID: 063CCCAD04182D32
3 changed files with 6 additions and 3 deletions

View file

@ -10,6 +10,9 @@ in
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
root = "${hopglass-fe}"; root = "${hopglass-fe}";
extraConfig = ''
access_log off;
'';
locations."/" = { locations."/" = {
extraConfig = '' extraConfig = ''
index index.html; index index.html;

View file

@ -3,8 +3,5 @@
{ {
services.nginx = { services.nginx = {
logError = "/dev/null"; logError = "/dev/null";
appendConfig = ''
access_log off;
'';
}; };
} }

View file

@ -31,6 +31,9 @@ in
forceSSL = config.variables.useSSL; forceSSL = config.variables.useSSL;
enableACME = config.variables.useSSL; enableACME = config.variables.useSSL;
root = "${roundcube}/public_html"; root = "${roundcube}/public_html";
extraConfig = ''
access_log off;
'';
locations."~ ^/favicon.ico/.*$" = { locations."~ ^/favicon.ico/.*$" = {
extraConfig = "try_files $uri kins/larry/images/$uri;"; extraConfig = "try_files $uri kins/larry/images/$uri;";
}; };