grafana: its settings.security.admin_password
This commit is contained in:
parent
1d1832d752
commit
2432ef351e
1 changed files with 11 additions and 9 deletions
|
@ -6,7 +6,7 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
imports = [];
|
imports = [ ];
|
||||||
|
|
||||||
sops = {
|
sops = {
|
||||||
defaultSopsFile = ../secrets/passwords.yaml;
|
defaultSopsFile = ../secrets/passwords.yaml;
|
||||||
|
@ -35,17 +35,19 @@
|
||||||
|
|
||||||
services.grafana = {
|
services.grafana = {
|
||||||
enable = true;
|
enable = true;
|
||||||
security.admin_password = "$__file{${config.sops.secrets."vms/grafana/admin_password".path}}";
|
settings = {
|
||||||
settings.server = {
|
security.admin_password = "$__file{${config.sops.secrets."vms/grafana/admin_password".path}}";
|
||||||
domain = "grafana.noc.eh22.intern";
|
server = {
|
||||||
root_url = "http://grafana.noc.eh22.intern/";
|
domain = "grafana.noc.eh22.intern";
|
||||||
|
root_url = "http://grafana.noc.eh22.intern/";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts.${config.services.grafana.domain} = {
|
services.nginx.virtualHosts.${config.services.grafana.domain} = {
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://127.0.0.1:${toString config.services.grafana.port}";
|
proxyPass = "http://127.0.0.1:${toString config.services.grafana.port}";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue