flake/hosts/tyo0/services/keycloak.nix

25 lines
571 B
Nix
Raw Normal View History

2024-08-31 02:15:09 +00:00
{ lib, pkgs, ... }:
{
2024-08-11 10:13:36 +00:00
services.keycloak = {
enable = true;
settings = {
cache = "local";
hostname = "id.ny4.dev";
http-host = "127.0.0.1";
http-port = 8800;
proxy = "edge";
};
database.passwordFile = toString (pkgs.writeText "password" "keycloak");
};
2024-08-31 02:15:09 +00:00
services.caddy.settings.apps.http.servers.srv0.routes = lib.singleton {
match = lib.singleton {
host = [ "id.ny4.dev" ];
};
handle = lib.singleton {
handler = "reverse_proxy";
upstreams = [ { dial = "localhost:8800"; } ];
};
};
2024-08-11 10:13:36 +00:00
}