grafana: add grafana group to nginx to access socket, remove ineffective overwrites
This commit is contained in:
parent
7f30d77a8b
commit
96e17a1bb1
|
@ -112,22 +112,13 @@
|
|||
};
|
||||
};
|
||||
|
||||
systemd.services =
|
||||
builtins.foldl'
|
||||
(services: service:
|
||||
services // {
|
||||
"${service}".serviceConfig = {
|
||||
RestartSec = 60;
|
||||
Restart = "always";
|
||||
};
|
||||
}
|
||||
)
|
||||
{ } [ "grafana" "influxdb" ]
|
||||
// {
|
||||
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" ];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue