about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorsuperherointj <5861043+superherointj@users.noreply.github.com>2022-08-31 12:57:49 -0300
committerGitHub <noreply@github.com>2022-08-31 12:57:49 -0300
commit73305cc3d4e75f889eae95372168147b1b545061 (patch)
tree725acf48932fdfbdb7b3143eda9150739d8ee34d /nixos
parent30484e44ce4f9e41a54a52a3216192275bfea452 (diff)
parent2affab6cf52750cc16cafbe16fbaffbb663be482 (diff)
downloadnixlib-73305cc3d4e75f889eae95372168147b1b545061.tar
nixlib-73305cc3d4e75f889eae95372168147b1b545061.tar.gz
nixlib-73305cc3d4e75f889eae95372168147b1b545061.tar.bz2
nixlib-73305cc3d4e75f889eae95372168147b1b545061.tar.lz
nixlib-73305cc3d4e75f889eae95372168147b1b545061.tar.xz
nixlib-73305cc3d4e75f889eae95372168147b1b545061.tar.zst
nixlib-73305cc3d4e75f889eae95372168147b1b545061.zip
Merge pull request #189101 from talyz/keycloak-19
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
             '';
           };