nix-infra/config/hosts/keycloak/keycloak.nix
fi e484360f91 Use the X-Forwarded-* headers for keycloak instead of Forwarded
This also explicitly sets X-Forwarded-Proto to https which fixes
the warning "Non-secure context detected; cookies are not secured,
and will not be available in cross-origin POST requests" which
prevented the user account management page to load.
2025-02-11 18:29:36 +01:00

16 lines
379 B
Nix

{ ... }:
{
services.keycloak = {
enable = true;
settings = {
hostname = "https://id.nekover.se";
hostname-admin = "https://keycloak-admin.nekover.se";
proxy-headers = "xforwarded";
http-enabled = true;
http-host = "127.0.0.1";
http-port = 8080;
};
database.passwordFile = "/secrets/keycloak-database-password.secret";
};
}