git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commit83e406e97ab0feb90bfd2925fcf3ed5b01236591 authortalyz <kim.lindberger@gmail.com> dateFri 7 May 2021, 15:33 (6 years ago) parent58614f8
1 file changed+1
nixos/modules/services/web-apps/keycloak.nix+1
nixos/modules/services/web-apps/keycloak.nix+1
@@ -54,6 +54,7 @@ in
5454
5555 frontendUrl = lib.mkOption {
5656 type = lib.types.str;
57+ apply = x: if lib.hasSuffix "/" x then x else x + "/";
5758 example = "keycloak.example.com/auth";
5859 description = ''
5960 The public URL used as base for all frontend requests. Should