defiant/keycloak: fix hostname settings after 24.11 upgrade
This commit is contained in:
parent
512c0595cb
commit
98d66602b3
@ -1,6 +1,7 @@
|
|||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.services.keycloak.settings;
|
cfg = config.services.keycloak.settings;
|
||||||
|
hostname = "iam.feal.no";
|
||||||
in {
|
in {
|
||||||
sops.secrets."keycloak/postgres" = { };
|
sops.secrets."keycloak/postgres" = { };
|
||||||
|
|
||||||
@ -16,7 +17,7 @@ in {
|
|||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
cache = "local";
|
cache = "local";
|
||||||
hostname = "https://iam.feal.no";
|
hostname = "https://${hostname}";
|
||||||
hostname-backchannel-dynamic = false;
|
hostname-backchannel-dynamic = false;
|
||||||
http-enabled = true;
|
http-enabled = true;
|
||||||
http-host = "127.0.1.2";
|
http-host = "127.0.1.2";
|
||||||
@ -26,7 +27,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
# The main reverse proxy is defined in ./nginx.nix
|
# The main reverse proxy is defined in ./nginx.nix
|
||||||
services.nginx.virtualHosts.${cfg.hostname} = {
|
services.nginx.virtualHosts.${hostname} = {
|
||||||
locations."= /".return = "302 ${cfg.hostname}/realms/feal.no/account";
|
locations."= /".return = "302 ${cfg.hostname}/realms/feal.no/account";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user