mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 09:44:08 -05:00
24 lines
572 B
Nix
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";
|
|
};
|
|
};
|
|
}
|