Files
cyper-nix/nixos/roles/keycloack.nix
T
2026-05-06 23:45:13 +02:00

29 lines
634 B
Nix

{ config, ... }:
{
services = {
nginx.virtualHosts."www.cyperpunk.de".locations."/cloak" = {
proxyPass = "http://localhost:${toString config.services.keycloak.settings.http-port}/cloak/";
};
keycloak = {
enable = true;
database = {
type = "postgresql";
createLocally = true;
username = "keycloak";
passwordFile = "/etc/nixos/secrets/keycloak_psql_pass";
};
settings = {
hostname = "cyperpunk.de";
http-relative-path = "/cloak";
http-port = 38080;
proxy = "passthrough";
http-enabled = true;
};
};
};
}