From 195583e07b9c48a7fd9d53899997418bbc5dd432 Mon Sep 17 00:00:00 2001 From: maurim Date: Tue, 7 Nov 2023 20:47:36 +0100 Subject: [PATCH] Fix the root redirect to account console Motivation - close open issue --- modules/management/keycloak.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/management/keycloak.nix b/modules/management/keycloak.nix index d6aa1437..4d9df9f8 100644 --- a/modules/management/keycloak.nix +++ b/modules/management/keycloak.nix @@ -57,12 +57,16 @@ in enableACME = true; forceSSL = true; locations = { + "= /" = { + return = "302 https://auth.${config.deployment-dd-ix.domain}/realms/DD-IX/account/"; + }; "/" = { proxyPass = "http://127.0.0.1:${toString config.services.keycloak.settings.http-port}"; proxyWebsockets = true; }; }; }; + "keycloak.${config.deployment-dd-ix.domain}" = { enableACME = true; forceSSL = true;