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 =
|
systemd.services = {
|
||||||
builtins.foldl'
|
# work around our slow storage that can't keep up
|
||||||
(services: service:
|
influxdb.serviceConfig.LimitNOFILE = "1048576:1048576";
|
||||||
services // {
|
influxdb.serviceConfig.TimeoutStartSec = "infinity";
|
||||||
"${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";
|
|
||||||
};
|
|
||||||
|
|
||||||
system.stateVersion = "22.05";
|
system.stateVersion = "22.05";
|
||||||
|
|
||||||
|
users.users.nginx.extraGroups = [ "grafana" ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue