move access_log to a valid location in the config

This commit is contained in:
Daniel Frank 2022-01-27 23:20:05 +01:00
parent 91b0f47f66
commit 9fb840cb2a
Signed by: tokudan
GPG key ID: 063CCCAD04182D32

View file

@ -4,9 +4,6 @@
networking.firewall.allowedTCPPorts = [ 80 443 ]; networking.firewall.allowedTCPPorts = [ 80 443 ];
services.nginx = { services.nginx = {
enable = true; enable = true;
appendConfig = ''
access_log off;
'';
recommendedGzipSettings = true; recommendedGzipSettings = true;
recommendedOptimisation = true; recommendedOptimisation = true;
recommendedTlsSettings = true; recommendedTlsSettings = true;
@ -14,6 +11,9 @@
default = true; default = true;
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
extraConfig = ''
access_log off;
'';
locations."/".proxyPass = "http://unix:${config.services.grafana.socket}:/"; locations."/".proxyPass = "http://unix:${config.services.grafana.socket}:/";
}; };
}; };