nixos/prometheus: allow state access for service only

There is no reason for Prometheus state files to be
world-readable.
launchpad/nixpkgs/master
Konrad Borowski 3 years ago
parent 44b5c74960
commit 447b1cf03d
  1. 1
      nixos/modules/services/monitoring/prometheus/default.nix

@ -945,6 +945,7 @@ in {
RuntimeDirectoryMode = "0700";
WorkingDirectory = workingDir;
StateDirectory = cfg.stateDir;
StateDirectoryMode = "0700";
};
};
};

Loading…
Cancel
Save