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
2 changed files with 8 additions and 0 deletions
|
|
@ -27,6 +27,12 @@ in
|
|||
example = "/var/lib/grafana/password.txt";
|
||||
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 = {
|
||||
|
|
@ -61,6 +67,7 @@ in
|
|||
security = {
|
||||
admin_user = cfg.grafana.username;
|
||||
admin_password = "$__file{${cfg.grafana.passwordFile}}";
|
||||
secret_key = "$__file{${cfg.grafana.secretKeyFile}}";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue