Is it important to disable nscd?

This commit is contained in:
niten 2023-09-02 10:22:08 -07:00
parent f40c3f3758
commit d8c20e3c65
1 changed files with 81 additions and 77 deletions

View File

@ -144,13 +144,16 @@ in {
system.nssModules = lib.mkForce [ ];
systemd.services.nginx.serviceConfig.AmbientCapabilities =
lib.mkForce [ "CAP_NET_BIND_SERVICE" ];
services.nginx = {
services = {
nscd.enable = false;
nginx = {
enable = true;
recommendedZstdSettings = true;
recommendedOptimisation = true;
recommendedGzipSettings = true;
recommendedProxySettings = true;
upstreams.php-handler.extraConfig = "server nextcloud:9000;";
upstreams.php-handler.extraConfig =
"server nextcloud:9000;";
virtualHosts."localhost" = {
extraConfig = ''
add_header Referrer-Policy "no-referrer" always;
@ -230,6 +233,7 @@ in {
};
};
};
};
service = {
# useHostStore = true;
ports = [ "${toString cfg.port}:80" ];