move grafana logs to /var/log/grafana
This commit is contained in:
parent
c80e72a450
commit
b0bf88169f
@ -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}"];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user