CrOS/modules/services/auth-provider/default.nix
2025-10-14 15:36:27 -04:00

24 lines
572 B
Nix

{pkgs, ...}: {
environment.etc."testing-keycloak-pass".text = "PWD";
services.caddy = {
enable = true;
virtualHosts."auth.wanderingcrow.net".extraConfig = ''
reverse_proxy http://localhost:5555
'';
};
services.keycloak = {
enable = true;
settings = {
hostname = "localhost";
http-port = 5555;
https-port = 9443;
http-enabled = true;
hostname-strict-https = false;
};
database = {
type = "postgresql";
createLocally = true;
passwordFile = "/etc/testing-keycloak-pass";
};
};
}