mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-15 19:44:11 -05:00
27 lines
647 B
Nix
27 lines
647 B
Nix
{config, ...}: {
|
|
services.caddy = {
|
|
enable = true;
|
|
virtualHosts."auth.wanderingcrow.net".extraConfig = ''
|
|
reverse_proxy http://localhost:5555
|
|
'';
|
|
};
|
|
|
|
sops.secrets."keycloak/database/pass" = {};
|
|
|
|
services.keycloak = {
|
|
enable = true;
|
|
initialAdminPassword = "changeme";
|
|
settings = {
|
|
hostname = "https://auth.wanderingcrow.net";
|
|
http-port = 5555;
|
|
https-port = 9443;
|
|
http-enabled = true;
|
|
hostname-strict-https = false;
|
|
};
|
|
database = {
|
|
type = "postgresql";
|
|
createLocally = true;
|
|
passwordFile = config.sops.secrets."keycloak/database/pass".path;
|
|
};
|
|
};
|
|
}
|