Grafana will read from files now

This commit is contained in:
niten 2022-12-08 16:39:55 -08:00
parent 2e07480473
commit 529ffd694f

View File

@ -205,19 +205,19 @@ in {
in "${scheme}://${cfg.hostname}/";
dataDir = cfg.state-directory;
security = {
adminPasswordFile = cfg.admin-password-file;
secretKeyFile = cfg.secret-key-file;
};
settings = {
smtp = {
enable = true;
# TODO: create system user as necessary
fromAddress = "${cfg.smtp.username}@${cfg.smtp.domain}";
from_address = "${cfg.smtp.username}@${cfg.smtp.domain}";
host = "${cfg.smtp.hostname}:25";
user = cfg.smtp.username;
passwordFile = cfg.smtp.password-file;
password = "$__${cfg.smtp.password-file}}";
};
security = {
admin_password = "$__{${cfg.admin-password-file}}";
secret_key = "$__file{${cfg.secret-key-file}}";
};
ldap.auth = mkIf (cfg.ldap != null) (let