modules: services: monitoring: add 'secretKeyFile'
All checks were successful
ci/woodpecker/push/check Pipeline was successful
All checks were successful
ci/woodpecker/push/check Pipeline was successful
This commit is contained in:
parent
ae13ab0c86
commit
47533f119e
|
@ -80,6 +80,7 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
grafana = {
|
grafana = {
|
||||||
passwordFile = secrets."monitoring/password".path;
|
passwordFile = secrets."monitoring/password".path;
|
||||||
|
secretKeyFile = secrets."monitoring/secret-key".path;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# FLOSS music streaming server
|
# FLOSS music streaming server
|
||||||
|
|
|
@ -27,6 +27,12 @@ in
|
||||||
example = "/var/lib/grafana/password.txt";
|
example = "/var/lib/grafana/password.txt";
|
||||||
description = "Admin password stored in a file";
|
description = "Admin password stored in a file";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
secretKeyFile = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
example = "/var/lib/grafana/secret_key.txt";
|
||||||
|
description = "Secret key stored in a file";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
prometheus = {
|
prometheus = {
|
||||||
|
@ -61,6 +67,7 @@ in
|
||||||
security = {
|
security = {
|
||||||
admin_user = cfg.grafana.username;
|
admin_user = cfg.grafana.username;
|
||||||
admin_password = "$__file{${cfg.grafana.passwordFile}}";
|
admin_password = "$__file{${cfg.grafana.passwordFile}}";
|
||||||
|
secret_key = "$__file{${cfg.grafana.secretKeyFile}}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue