nginx: Lower default error log severity

This commit is contained in:
Simon Bruder 2024-10-12 12:32:37 +02:00
parent 70bd878298
commit 83b12e1977
Signed by: simon
GPG key ID: 347FF8699CDA0776

View file

@ -35,9 +35,12 @@ in
''; '';
}) })
(lib.mkIf cfg.privacy.enable { (lib.mkIf cfg.privacy.enable {
services.nginx.commonHttpConfig = '' services.nginx = {
access_log off; logError = "stderr crit"; # error (the default severity) logs potential PII (IP addresses) on 404 errors
''; commonHttpConfig = ''
access_log off;
'';
};
}) })
(lib.mkIf cfg.recommended.enable { (lib.mkIf cfg.recommended.enable {
services.nginx = { services.nginx = {