VEGAS/sso: use Patroni database
This commit is contained in:
parent
06e2f36f5e
commit
df62cbfe93
1 changed files with 6 additions and 2 deletions
|
@ -1,9 +1,10 @@
|
||||||
{ config, inputs, lib, pkgs, tools, ... }:
|
{ cluster, config, inputs, lib, pkgs, tools, ... }:
|
||||||
with tools.nginx;
|
with tools.nginx;
|
||||||
let
|
let
|
||||||
login = "login.${tools.meta.domain}";
|
login = "login.${tools.meta.domain}";
|
||||||
cfg = config.services.keycloak;
|
cfg = config.services.keycloak;
|
||||||
kc = config.links.keycloak;
|
kc = config.links.keycloak;
|
||||||
|
patroni = cluster.config.links.patroni-pg-access;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
tested.requiredChecks = [ "keycloak" ];
|
tested.requiredChecks = [ "keycloak" ];
|
||||||
|
@ -28,8 +29,11 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
package = inputs.self.packages.${pkgs.system}.keycloak;
|
package = inputs.self.packages.${pkgs.system}.keycloak;
|
||||||
database = {
|
database = {
|
||||||
createLocally = true;
|
createLocally = false;
|
||||||
type = "postgresql";
|
type = "postgresql";
|
||||||
|
host = patroni.ipv4;
|
||||||
|
inherit (patroni) port;
|
||||||
|
useSSL = false;
|
||||||
passwordFile = config.age.secrets.keycloak-dbpass.path;
|
passwordFile = config.age.secrets.keycloak-dbpass.path;
|
||||||
};
|
};
|
||||||
settings = {
|
settings = {
|
||||||
|
|
Loading…
Reference in a new issue