From 80a9b444764d6afb43785037ce5c11c7bb9b33f6 Mon Sep 17 00:00:00 2001 From: Trevor Dearham Date: Mon, 7 Oct 2024 17:07:51 +0100 Subject: [PATCH] Added aliases for environment variables from Keycloak documentation Signed-off-by: Trevor Dearham --- .../opt/bitnami/scripts/keycloak-env.sh | 39 +++++++++++++++---- 1 file changed, 32 insertions(+), 7 deletions(-) diff --git a/bitnami/keycloak/25/debian-12/rootfs/opt/bitnami/scripts/keycloak-env.sh b/bitnami/keycloak/25/debian-12/rootfs/opt/bitnami/scripts/keycloak-env.sh index 36852c78ea856..9fbc5a16946df 100644 --- a/bitnami/keycloak/25/debian-12/rootfs/opt/bitnami/scripts/keycloak-env.sh +++ b/bitnami/keycloak/25/debian-12/rootfs/opt/bitnami/scripts/keycloak-env.sh @@ -71,16 +71,32 @@ keycloak_env_vars=( KEYCLOAK_DAEMON_USER KEYCLOAK_DAEMON_GROUP KEYCLOAK_ADMIN_USER + KC_DB + KC_DB_DRIVER + KC_DB_PASSWORD + KC_DB_SCHEMA + KC_DB_URL_DATABASE + KC_DB_URL_HOST + KC_DB_URL_PORT + KC_DB_URL_PROPERTIES + KC_DB_USERNAME + KC_CACHE + KC_CACHE_CONFIG_FILE KC_HOSTNAME KC_HOSTNAME_ADMIN KC_HOSTNAME_STRICT KC_HEALTH_ENABLED + KC_HTTP_PORT + KC_HTTP_RELATIVE_PATH + KC_HTTPS_PORT KC_HTTPS_TRUST_STORE_FILE KC_HTTPS_TRUST_STORE_PASSWORD KC_HTTPS_KEY_STORE_FILE KC_HTTPS_KEY_STORE_PASSWORD KC_HTTPS_CERTIFICATE_FILE KC_HTTPS_CERTIFICATE_KEY_FILE + KC_LOG_LEVEL + KC_PROXY_HEADERS KC_SPI_TRUSTSTORE_FILE_FILE KC_SPI_TRUSTSTORE_PASSWORD KC_SPI_TRUSTSTORE_FILE_HOSTNAME_VERIFICATION_POLICY @@ -130,8 +146,11 @@ export KC_RUN_IN_CONTAINER="${KC_RUN_IN_CONTAINER:-true}" KEYCLOAK_ADMIN="${KEYCLOAK_ADMIN:-"${KEYCLOAK_ADMIN_USER:-}"}" export KEYCLOAK_ADMIN="${KEYCLOAK_ADMIN:-user}" export KEYCLOAK_ADMIN_PASSWORD="${KEYCLOAK_ADMIN_PASSWORD:-bitnami}" +KEYCLOAK_HTTP_RELATIVE_PATH="${KEYCLOAK_HTTP_RELATIVE_PATH:-"${KC_HTTP_RELATIVE_PATH:-}"}" export KEYCLOAK_HTTP_RELATIVE_PATH="${KEYCLOAK_HTTP_RELATIVE_PATH:-/}" +KEYCLOAK_HTTP_PORT="${KEYCLOAK_HTTP_PORT:-"${KC_HTTP_PORT:-}"}" export KEYCLOAK_HTTP_PORT="${KEYCLOAK_HTTP_PORT:-8080}" +KEYCLOAK_HTTPS_PORT="${KEYCLOAK_HTTPS_PORT:-"${KC_HTTPS_PORT:-}"}" export KEYCLOAK_HTTPS_PORT="${KEYCLOAK_HTTPS_PORT:-8443}" export KEYCLOAK_BIND_ADDRESS="${KEYCLOAK_BIND_ADDRESS:-$(hostname --fqdn)}" KEYCLOAK_HOSTNAME="${KEYCLOAK_HOSTNAME:-"${KC_HOSTNAME:-}"}" @@ -141,8 +160,10 @@ export KEYCLOAK_HOSTNAME_ADMIN="${KEYCLOAK_HOSTNAME_ADMIN:-}" KEYCLOAK_HOSTNAME_STRICT="${KEYCLOAK_HOSTNAME_STRICT:-"${KC_HOSTNAME_STRICT:-}"}" export KEYCLOAK_HOSTNAME_STRICT="${KEYCLOAK_HOSTNAME_STRICT:-false}" export KEYCLOAK_INIT_MAX_RETRIES="${KEYCLOAK_INIT_MAX_RETRIES:-10}" +KEYCLOAK_CACHE_TYPE="${KEYCLOAK_CACHE_TYPE:-"${KC_CACHE:-}"}" export KEYCLOAK_CACHE_TYPE="${KEYCLOAK_CACHE_TYPE:-ispn}" export KEYCLOAK_CACHE_STACK="${KEYCLOAK_CACHE_STACK:-}" +KEYCLOAK_CACHE_CONFIG_FILE="${KEYCLOAK_CACHE_CONFIG_FILE:-"${KC_CACHE_CONFIG_FILE:-}"}" export KEYCLOAK_CACHE_CONFIG_FILE="${KEYCLOAK_CACHE_CONFIG_FILE:-}" export KEYCLOAK_EXTRA_ARGS="${KEYCLOAK_EXTRA_ARGS:-}" export KEYCLOAK_ENABLE_STATISTICS="${KEYCLOAK_ENABLE_STATISTICS:-false}" @@ -168,27 +189,31 @@ KEYCLOAK_SPI_TRUSTSTORE_PASSWORD="${KEYCLOAK_SPI_TRUSTSTORE_PASSWORD:-"${KC_SPI_ export KEYCLOAK_SPI_TRUSTSTORE_PASSWORD="${KEYCLOAK_SPI_TRUSTSTORE_PASSWORD:-}" KEYCLOAK_SPI_TRUSTSTORE_FILE_HOSTNAME_VERIFICATION_POLICY="${KEYCLOAK_SPI_TRUSTSTORE_FILE_HOSTNAME_VERIFICATION_POLICY:-"${KC_SPI_TRUSTSTORE_FILE_HOSTNAME_VERIFICATION_POLICY:-}"}" export KEYCLOAK_SPI_TRUSTSTORE_FILE_HOSTNAME_VERIFICATION_POLICY="${KEYCLOAK_SPI_TRUSTSTORE_FILE_HOSTNAME_VERIFICATION_POLICY:-}" +KEYCLOAK_LOG_LEVEL="${KEYCLOAK_LOG_LEVEL:-"${KC_LOG_LEVEL:-}"}" export KEYCLOAK_LOG_LEVEL="${KEYCLOAK_LOG_LEVEL:-info}" export KEYCLOAK_LOG_OUTPUT="${KEYCLOAK_LOG_OUTPUT:-default}" export KEYCLOAK_ROOT_LOG_LEVEL="${KEYCLOAK_ROOT_LOG_LEVEL:-INFO}" +KEYCLOAK_PROXY_HEADERS="${KEYCLOAK_PROXY_HEADERS:-${KC_PROXY_HEADERS:-}}" export KEYCLOAK_PROXY_HEADERS="${KEYCLOAK_PROXY_HEADERS:-}" export KEYCLOAK_PRODUCTION="${KEYCLOAK_PRODUCTION:-false}" export KEYCLOAK_EXTRA_ARGS_PREPENDED="${KEYCLOAK_EXTRA_ARGS_PREPENDED:-}" +KEYCLOAK_DATABASE_VENDOR="${KEYCLOAK_DATABASE_VENDOR:-"${KC_DB:-}"}" export KEYCLOAK_DATABASE_VENDOR="${KEYCLOAK_DATABASE_VENDOR:-postgresql}" -KEYCLOAK_DATABASE_HOST="${KEYCLOAK_DATABASE_HOST:-"${DB_ADDR:-}"}" +KEYCLOAK_DATABASE_HOST="${KEYCLOAK_DATABASE_HOST:-"${DB_ADDR:-"${KC_DB_URL_HOST:-}"}"}" export KEYCLOAK_DATABASE_HOST="${KEYCLOAK_DATABASE_HOST:-postgresql}" -KEYCLOAK_DATABASE_PORT="${KEYCLOAK_DATABASE_PORT:-"${DB_PORT:-}"}" +KEYCLOAK_DATABASE_PORT="${KEYCLOAK_DATABASE_PORT:-"${DB_PORT:-"${KC_DB_URL_PORT:-}"}"}" export KEYCLOAK_DATABASE_PORT="${KEYCLOAK_DATABASE_PORT:-5432}" -KEYCLOAK_DATABASE_USER="${KEYCLOAK_DATABASE_USER:-"${DB_USER:-}"}" +KEYCLOAK_DATABASE_USER="${KEYCLOAK_DATABASE_USER:-"${DB_USER:-"${KC_DB_USERNAME:-}"}"}" export KEYCLOAK_DATABASE_USER="${KEYCLOAK_DATABASE_USER:-bn_keycloak}" -KEYCLOAK_DATABASE_NAME="${KEYCLOAK_DATABASE_NAME:-"${DB_DATABASE:-}"}" +KEYCLOAK_DATABASE_NAME="${KEYCLOAK_DATABASE_NAME:-"${DB_DATABASE:-"${KC_DB_URL_DATABASE:-}"}"}" export KEYCLOAK_DATABASE_NAME="${KEYCLOAK_DATABASE_NAME:-bitnami_keycloak}" -KEYCLOAK_DATABASE_PASSWORD="${KEYCLOAK_DATABASE_PASSWORD:-"${DB_PASSWORD:-}"}" +KEYCLOAK_DATABASE_PASSWORD="${KEYCLOAK_DATABASE_PASSWORD:-"${DB_PASSWORD:-"${KC_DB_PASSWORD:-}"}"}" export KEYCLOAK_DATABASE_PASSWORD="${KEYCLOAK_DATABASE_PASSWORD:-}" -KEYCLOAK_DATABASE_SCHEMA="${KEYCLOAK_DATABASE_SCHEMA:-"${DB_SCHEMA:-}"}" +KEYCLOAK_DATABASE_SCHEMA="${KEYCLOAK_DATABASE_SCHEMA:-"${DB_SCHEMA:-"${KC_DB_SCHEMA:-}"}"}" export KEYCLOAK_DATABASE_SCHEMA="${KEYCLOAK_DATABASE_SCHEMA:-public}" -KEYCLOAK_JDBC_PARAMS="${KEYCLOAK_JDBC_PARAMS:-"${JDBC_PARAMS:-}"}" +KEYCLOAK_JDBC_PARAMS="${KEYCLOAK_JDBC_PARAMS:-"${JDBC_PARAMS:-"${KC_DB_URL_PROPERTIES:-}"}"}" export KEYCLOAK_JDBC_PARAMS="${KEYCLOAK_JDBC_PARAMS:-}" +KEYCLOAK_JDBC_DRIVER="${KEYCLOAK_JDBC_DRIVER:-"${KC_DB_DRIVER:-}"}" export KEYCLOAK_JDBC_DRIVER="${KEYCLOAK_JDBC_DRIVER:-postgresql}" # System users (when running with a privileged user)