move grafana logs to /var/log/grafana

This commit is contained in:
Motiejus Jakštys 2023-09-08 07:42:22 +03:00
parent c80e72a450
commit b0bf88169f

View File

@ -298,6 +298,7 @@
}; };
}; };
settings = { settings = {
paths.logs = "/var/log/grafana";
server = { server = {
domain = "grafana.jakstys.lt"; domain = "grafana.jakstys.lt";
root_url = "https://grafana.jakstys.lt"; root_url = "https://grafana.jakstys.lt";
@ -504,6 +505,7 @@
grafana = { grafana = {
preStart = "ln -sf $CREDENTIALS_DIRECTORY/oidc /run/grafana/oidc-secret"; preStart = "ln -sf $CREDENTIALS_DIRECTORY/oidc /run/grafana/oidc-secret";
serviceConfig = { serviceConfig = {
LogsDirectory = "grafana";
RuntimeDirectory = "grafana"; RuntimeDirectory = "grafana";
LoadCredential = ["oidc:${config.age.secrets.grafana-oidc.path}"]; LoadCredential = ["oidc:${config.age.secrets.grafana-oidc.path}"];
}; };