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} =
|
services.nginx.virtualHosts.${config.services.grafana.settings.server.domain} =
|
||||||
config.satellite.proxy config.services.grafana.settings.server.http_port { };
|
config.satellite.proxy config.services.grafana.settings.server.http_port { };
|
||||||
|
|
||||||
environment.persistence."/persist/state".directories = [
|
environment.persistence."/persist/state".directories = [{
|
||||||
config.services.grafana.dataDir
|
directory = config.services.grafana.dataDir;
|
||||||
];
|
user = "grafana";
|
||||||
|
group = "grafana";
|
||||||
|
}];
|
||||||
# }}}
|
# }}}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,8 +34,10 @@ in
|
||||||
config.services.grafana.port
|
config.services.grafana.port
|
||||||
{ proxyWebsockets = true; };
|
{ proxyWebsockets = true; };
|
||||||
|
|
||||||
environment.persistence."/persist/state".directories = [
|
environment.persistence."/persist/state".directories = [{
|
||||||
"/var/lib/prometheus2"
|
directory = "/var/lib/prometheus2";
|
||||||
];
|
user = "prometheus";
|
||||||
|
group = "prometheus";
|
||||||
|
}];
|
||||||
# }}}
|
# }}}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue