Update permissions for grafana and prometheus
This commit is contained in:
parent
ea576cda8d
commit
970fe01fda
|
@ -58,8 +58,10 @@ in
|
|||
services.nginx.virtualHosts.${config.services.grafana.settings.server.domain} =
|
||||
config.satellite.proxy config.services.grafana.settings.server.http_port { };
|
||||
|
||||
environment.persistence."/persist/state".directories = [
|
||||
config.services.grafana.dataDir
|
||||
];
|
||||
environment.persistence."/persist/state".directories = [{
|
||||
directory = config.services.grafana.dataDir;
|
||||
user = "grafana";
|
||||
group = "grafana";
|
||||
}];
|
||||
# }}}
|
||||
}
|
||||
|
|
|
@ -34,8 +34,10 @@ in
|
|||
config.services.grafana.port
|
||||
{ proxyWebsockets = true; };
|
||||
|
||||
environment.persistence."/persist/state".directories = [
|
||||
"/var/lib/prometheus2"
|
||||
];
|
||||
environment.persistence."/persist/state".directories = [{
|
||||
directory = "/var/lib/prometheus2";
|
||||
user = "prometheus";
|
||||
group = "prometheus";
|
||||
}];
|
||||
# }}}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue