about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authortalyz <kim.lindberger@gmail.com>2022-08-31 13:18:56 +0200
committertalyz <kim.lindberger@gmail.com>2022-08-31 13:18:56 +0200
commit2affab6cf52750cc16cafbe16fbaffbb663be482 (patch)
treee2cb1af1ef0e60052828b7c159ee8d3202925810 /nixos
parentbacac7cf54bdfdb41091a506dd1b158da08a2d78 (diff)
downloadnixlib-2affab6cf52750cc16cafbe16fbaffbb663be482.tar
nixlib-2affab6cf52750cc16cafbe16fbaffbb663be482.tar.gz
nixlib-2affab6cf52750cc16cafbe16fbaffbb663be482.tar.bz2
nixlib-2affab6cf52750cc16cafbe16fbaffbb663be482.tar.lz
nixlib-2affab6cf52750cc16cafbe16fbaffbb663be482.tar.xz
nixlib-2affab6cf52750cc16cafbe16fbaffbb663be482.tar.zst
nixlib-2affab6cf52750cc16cafbe16fbaffbb663be482.zip
keycloak: 18.0.0 -> 19.0.1
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/web-apps/keycloak.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/nixos/modules/services/web-apps/keycloak.nix b/nixos/modules/services/web-apps/keycloak.nix
index 26bed24eed27..172a3e59335f 100644
--- a/nixos/modules/services/web-apps/keycloak.nix
+++ b/nixos/modules/services/web-apps/keycloak.nix
@@ -25,6 +25,7 @@ let
     catAttrs
     collect
     splitString
+    hasPrefix
     ;
 
   inherit (builtins)
@@ -312,8 +313,9 @@ in
 
             http-relative-path = mkOption {
               type = str;
-              default = "";
+              default = "/";
               example = "/auth";
+              apply = x: if !(hasPrefix "/") x then "/" + x else x;
               description = ''
                 The path relative to <literal>/</literal> for serving
                 resources.
@@ -658,7 +660,7 @@ in
             '' + ''
               export KEYCLOAK_ADMIN=admin
               export KEYCLOAK_ADMIN_PASSWORD=${cfg.initialAdminPassword}
-              kc.sh start
+              kc.sh start --optimized
             '';
           };