mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
feat(keycloak): add, broken
This commit is contained in:
parent
e63304937d
commit
7ff72a29ab
6 changed files with 223 additions and 0 deletions
25
nixos/keycloak.nix
Normal file
25
nixos/keycloak.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{config, ...}: {
|
||||
sops.secrets = let
|
||||
commonSecret = {
|
||||
sopsFile = ./secrets/keycloak.yaml;
|
||||
owner = "keycloak";
|
||||
};
|
||||
in {
|
||||
keycloak_db_password = commonSecret;
|
||||
};
|
||||
|
||||
services.keycloak = {
|
||||
enable = true;
|
||||
|
||||
database = {
|
||||
host = "postgresql.local.${config.networking.domain}";
|
||||
passwordFile = config.sops.secrets.keycloak_db_password.path;
|
||||
createLocally = false;
|
||||
};
|
||||
|
||||
settings = {
|
||||
hostname = "sso.gensokyo.zone";
|
||||
proxy = "edge";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue