Only need DB SSL if on a public network

This commit is contained in:
niten 2023-12-10 16:10:09 -08:00
parent 09e6262e83
commit deb3e455bd
1 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ in {
};
datasources = mkOption {
type = listOf (submodule datasourceOpts);
type = attrsOf (submodule datasourceOpts);
description = "A list of datasources supplied to Grafana.";
default = { };
};
@ -231,7 +231,7 @@ in {
user = cfg.database.user;
password = "$__file{${cfg.database.password-file}}";
type = "postgres";
ssl_mode = "require";
ssl_mode = if cfg.private-nework then "disable" else "require";
};
"ldap.auth" = mkIf (cfg.ldap != null) (let