From 83e406e97ab0feb90bfd2925fcf3ed5b01236591 Mon Sep 17 00:00:00 2001 From: talyz Date: Fri, 7 May 2021 15:33:45 +0200 Subject: [PATCH] nixos/keycloak: frontendUrl always needs to be suffixed with / In some places, Keycloak expects the frontendUrl to end with `/`, so let's make sure it always does. --- nixos/modules/services/web-apps/keycloak.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/web-apps/keycloak.nix b/nixos/modules/services/web-apps/keycloak.nix index 8986e9fb0ab..38ade3560de 100644 --- a/nixos/modules/services/web-apps/keycloak.nix +++ b/nixos/modules/services/web-apps/keycloak.nix @@ -54,6 +54,7 @@ in frontendUrl = lib.mkOption { type = lib.types.str; + apply = x: if lib.hasSuffix "/" x then x else x + "/"; example = "keycloak.example.com/auth"; description = '' The public URL used as base for all frontend requests. Should