mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-12 06:19:00 +00:00
hosts/plover: update Grafana nginx and secrets config
This commit is contained in:
parent
0830ff0458
commit
2af2326b16
@ -102,8 +102,16 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Make Grafana as the default to be redirected.
|
||||||
|
"= /".return = "/grafana";
|
||||||
|
|
||||||
# Serving Grafana with a subpath.
|
# Serving Grafana with a subpath.
|
||||||
"/grafana".proxyPass = "http://${settings.server.http_addr}:${builtins.toString settings.server.http_port}";
|
"/grafana" = {
|
||||||
|
proxyPass = "http://${settings.server.http_addr}:${builtins.toString settings.server.http_port}";
|
||||||
|
extraConfig = ''
|
||||||
|
proxy_set_header X-Vouch-User $auth_resp_x_vouch_user;
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -120,8 +128,14 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
sops.secrets = lib.getSecrets ../../secrets/secrets.yaml {
|
sops.secrets = let
|
||||||
"grafana/database/password" = { };
|
grafanaFileAttributes = {
|
||||||
"grafana/users/admin/password" = { };
|
owner = config.users.users.grafana.name;
|
||||||
|
group = config.users.users.grafana.group;
|
||||||
|
mode = "0400";
|
||||||
|
};
|
||||||
|
in lib.getSecrets ../../secrets/secrets.yaml {
|
||||||
|
"grafana/database/password" = grafanaFileAttributes;
|
||||||
|
"grafana/users/admin/password" = grafanaFileAttributes;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user