This commit is contained in:
parent
4ed9ba0d24
commit
a90630ecb6
98 changed files with 2063 additions and 729 deletions
31
nixos/hosts/keycloak/keycloak.nix
Normal file
31
nixos/hosts/keycloak/keycloak.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
services.postgresql.enable = true;
|
||||
|
||||
services.keycloak = {
|
||||
enable = true;
|
||||
initialAdminPassword = "password";
|
||||
database = {
|
||||
type = "postgresql";
|
||||
createLocally = true;
|
||||
|
||||
username = "keycloak";
|
||||
passwordFile = config.sops.secrets.keycloak_psql_pass.path;
|
||||
};
|
||||
|
||||
settings = {
|
||||
hostname = "keycloak.procopius.dk";
|
||||
# hostname-admin = "http://keycloak.lab:8080";
|
||||
# hostname-strict = false;
|
||||
# hostname-backchannel-dynamic = true;
|
||||
http-enabled = true;
|
||||
http-port = 8080;
|
||||
proxy-headers = "xforwarded";
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [8080];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue