Merge pull request #189101 from talyz/keycloak-19
keycloak: 18.0.0 -> 19.0.1
This commit is contained in:
commit
73305cc3d4
@ -25,6 +25,7 @@ let
|
|||||||
catAttrs
|
catAttrs
|
||||||
collect
|
collect
|
||||||
splitString
|
splitString
|
||||||
|
hasPrefix
|
||||||
;
|
;
|
||||||
|
|
||||||
inherit (builtins)
|
inherit (builtins)
|
||||||
@ -312,8 +313,9 @@ in
|
|||||||
|
|
||||||
http-relative-path = mkOption {
|
http-relative-path = mkOption {
|
||||||
type = str;
|
type = str;
|
||||||
default = "";
|
default = "/";
|
||||||
example = "/auth";
|
example = "/auth";
|
||||||
|
apply = x: if !(hasPrefix "/") x then "/" + x else x;
|
||||||
description = ''
|
description = ''
|
||||||
The path relative to <literal>/</literal> for serving
|
The path relative to <literal>/</literal> for serving
|
||||||
resources.
|
resources.
|
||||||
@ -658,7 +660,7 @@ in
|
|||||||
'' + ''
|
'' + ''
|
||||||
export KEYCLOAK_ADMIN=admin
|
export KEYCLOAK_ADMIN=admin
|
||||||
export KEYCLOAK_ADMIN_PASSWORD=${cfg.initialAdminPassword}
|
export KEYCLOAK_ADMIN_PASSWORD=${cfg.initialAdminPassword}
|
||||||
kc.sh start
|
kc.sh start --optimized
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -13,11 +13,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "keycloak";
|
pname = "keycloak";
|
||||||
version = "18.0.0";
|
version = "19.0.1";
|
||||||
|
|
||||||
src = fetchzip {
|
src = fetchzip {
|
||||||
url = "https://github.com/keycloak/keycloak/releases/download/${version}/keycloak-${version}.zip";
|
url = "https://github.com/keycloak/keycloak/releases/download/${version}/keycloak-${version}.zip";
|
||||||
sha256 = "0fxf9m50hpjplj077z2zjp0qibixz5y4lbc8159cnxbd4gzpkaaf";
|
sha256 = "sha256-3hqnFH0zWvgOgpQHV4eMqTGzUWEoRwxvOcOUL2s8YQk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper jre ];
|
nativeBuildInputs = [ makeWrapper jre ];
|
||||||
@ -28,17 +28,14 @@ stdenv.mkDerivation rec {
|
|||||||
install -m 0600 ${confFile} conf/keycloak.conf
|
install -m 0600 ${confFile} conf/keycloak.conf
|
||||||
'' + ''
|
'' + ''
|
||||||
install_plugin() {
|
install_plugin() {
|
||||||
if [ -d "$1" ]; then
|
if [ -d "$1" ]; then
|
||||||
find "$1" -type f \( -iname \*.ear -o -iname \*.jar \) -exec install -m 0500 "{}" "providers/" \;
|
find "$1" -type f \( -iname \*.ear -o -iname \*.jar \) -exec install -m 0500 "{}" "providers/" \;
|
||||||
else
|
else
|
||||||
install -m 0500 "$1" "providers/"
|
install -m 0500 "$1" "providers/"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
${lib.concatMapStringsSep "\n" (pl: "install_plugin ${lib.escapeShellArg pl}") plugins}
|
${lib.concatMapStringsSep "\n" (pl: "install_plugin ${lib.escapeShellArg pl}") plugins}
|
||||||
'' + ''
|
'' + ''
|
||||||
export KC_HOME_DIR=$out
|
|
||||||
export KC_CONF_DIR=$out/conf
|
|
||||||
|
|
||||||
patchShebangs bin/kc.sh
|
patchShebangs bin/kc.sh
|
||||||
bin/kc.sh build
|
bin/kc.sh build
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user