Add Keycloak to enabled services and refactor configuration settings structure

This commit is contained in:
Danilo Reyes
2025-12-10 02:31:31 -06:00
parent e714a8d184
commit 5289193961
2 changed files with 9 additions and 6 deletions

View File

@@ -31,12 +31,14 @@ in
name = "keycloak";
passwordFile = config.sops.secrets."keycloak/db_password".path;
};
settings.hostname = cfg.host;
"hostname-strict" = true;
"hostname-strict-https" = false;
"http-enabled" = true;
"http-port" = cfg.port;
"proxy" = "edge";
settings = {
hostname = cfg.host;
hostname-strict = true;
hostname-strict-https = false;
http-enabled = true;
http-port = cfg.port;
proxy = "edge";
};
};
systemd.services.keycloak.serviceConfig.EnvironmentFile = config.sops.secrets.keycloak.path;
services.nginx.virtualHosts.${cfg.host} = lib.mkIf (cfg.enableProxy && config.my.enableProxy) (