1
Fork 0

Update permissions for grafana and prometheus

This commit is contained in:
prescientmoon 2024-02-24 07:19:34 +01:00
parent ea576cda8d
commit 970fe01fda
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4
2 changed files with 10 additions and 6 deletions

View file

@ -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";
}];
# }}}
}

View file

@ -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";
}];
# }}}
}