homelab/nixos/hosts/keycloak/keycloak.nix
plasmagoat a90630ecb6
All checks were successful
Hello World / test (push) Successful in 12s
dump
2025-07-05 11:12:20 +02:00

31 lines
667 B
Nix

{
config,
pkgs,
...
}: {
services.postgresql.enable = true;
services.keycloak = {
enable = true;
initialAdminPassword = "password";
database = {
type = "postgresql";
createLocally = true;
username = "keycloak";
passwordFile = config.sops.secrets.keycloak_psql_pass.path;
};
settings = {
hostname = "keycloak.procopius.dk";
# hostname-admin = "http://keycloak.lab:8080";
# hostname-strict = false;
# hostname-backchannel-dynamic = true;
http-enabled = true;
http-port = 8080;
proxy-headers = "xforwarded";
};
};
networking.firewall.allowedTCPPorts = [8080];
}