# whenever upstream uses a list instead of a string.
LogsDirectory = lib.mkForce [ "nginx" ];
StateDirectory = [ "nginx" ];
- StateDirectoryMode = "2770";
+ StateDirectoryMode = "2771";
#BindPaths = ["/dev/shm/nginx:/var/cache/nginx"];
};
};
# Enable XSS protection of the browser.
# May be unnecessary when CSP is configured properly (see above)
- add_header X-XSS-Protection "1; mode=block";
+ # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection
+ #add_header X-XSS-Protection "1; mode=block";
# Minimize information leaked to other domains
add_header 'Referrer-Policy' 'origin-when-cross-origin';