keycloak #1

Merged
jawz merged 29 commits from keycloak into main 2025-12-25 18:54:49 -06:00
2 changed files with 9 additions and 6 deletions
Showing only changes of commit 5289193961 - Show all commits

View File

@@ -76,6 +76,7 @@ in
"mealie" "mealie"
"metube" "metube"
"atticd" "atticd"
"keycloak"
] ]
// enableList mkEnabledIp [ // enableList mkEnabledIp [
"audiobookshelf" "audiobookshelf"

View File

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