2023-04-26 21:25:04 +00:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
services.keycloak = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
http-port = 8097;
|
|
|
|
proxy = "edge";
|
|
|
|
hostname = "auth.katzen.cafe";
|
2023-04-26 23:48:20 +00:00
|
|
|
hostname-strict-backchannel = true;
|
2023-04-26 21:25:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
database = {
|
2023-04-26 23:48:20 +00:00
|
|
|
type = "postgresql";
|
|
|
|
createLocally = true;
|
|
|
|
|
|
|
|
username = "keycloak";
|
|
|
|
passwordFile = "/run/keys/keycloakDbPw";
|
2023-04-26 21:25:04 +00:00
|
|
|
};
|
|
|
|
};
|
2023-04-26 23:48:20 +00:00
|
|
|
deployment.keys."keycloakDbPw" = {
|
|
|
|
keyCommand = [ "cat" "/home/jade/keys-tmp/keycloak-db" ];
|
|
|
|
destDir = "/run/keys/";
|
|
|
|
};
|
2023-04-26 21:25:04 +00:00
|
|
|
}
|