nginx: Lower default error log severity
This commit is contained in:
parent
70bd878298
commit
83b12e1977
|
@ -35,9 +35,12 @@ in
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
(lib.mkIf cfg.privacy.enable {
|
(lib.mkIf cfg.privacy.enable {
|
||||||
services.nginx.commonHttpConfig = ''
|
services.nginx = {
|
||||||
|
logError = "stderr crit"; # error (the default severity) logs potential PII (IP addresses) on 404 errors
|
||||||
|
commonHttpConfig = ''
|
||||||
access_log off;
|
access_log off;
|
||||||
'';
|
'';
|
||||||
|
};
|
||||||
})
|
})
|
||||||
(lib.mkIf cfg.recommended.enable {
|
(lib.mkIf cfg.recommended.enable {
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
|
|
Loading…
Reference in a new issue