auth machine
This commit is contained in:
parent
98dce86882
commit
851a9e18db
34 changed files with 2383 additions and 99 deletions
|
|
@ -5,6 +5,8 @@
|
|||
lib,
|
||||
...
|
||||
}: {
|
||||
# Add grafana user to the inlfuxdb2 group (for secret)
|
||||
users.users.grafana.extraGroups = ["influxdb2"];
|
||||
services.grafana.enable = true;
|
||||
services.grafana.settings = {
|
||||
server = {
|
||||
|
|
@ -57,7 +59,7 @@
|
|||
httpHeaderName1 = "Authorization";
|
||||
};
|
||||
secureJsonData = {
|
||||
httpHeaderValue1 = "Token iY4MTuqUAVJbBkDUiMde";
|
||||
httpHeaderValue1 = "$__file{${config.sops.secrets."influxdb/token".path}}";
|
||||
};
|
||||
}
|
||||
];
|
||||
|
|
@ -123,4 +125,11 @@
|
|||
group = "grafana";
|
||||
mode = "0644";
|
||||
};
|
||||
|
||||
environment.etc."grafana-dashboards/gatus.json" = {
|
||||
source = ./dashboards/gatus.json;
|
||||
user = "grafana";
|
||||
group = "grafana";
|
||||
mode = "0644";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue