grafana: add grafana group to nginx to access socket, remove ineffective overwrites

This commit is contained in:
Sandro - 2023-12-06 23:42:13 +01:00
parent 7f30d77a8b
commit 96e17a1bb1
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 7 additions and 16 deletions

View File

@ -112,22 +112,13 @@
};
};
systemd.services =
builtins.foldl'
(services: service:
services // {
"${service}".serviceConfig = {
RestartSec = 60;
Restart = "always";
};
}
)
{ } [ "grafana" "influxdb" ]
// {
# work around our slow storage that can't keep up
influxdb.serviceConfig.LimitNOFILE = "1048576:1048576";
influxdb.serviceConfig.TimeoutStartSec = "infinity";
};
systemd.services = {
# work around our slow storage that can't keep up
influxdb.serviceConfig.LimitNOFILE = "1048576:1048576";
influxdb.serviceConfig.TimeoutStartSec = "infinity";
};
system.stateVersion = "22.05";
users.users.nginx.extraGroups = [ "grafana" ];
}