From ee82391bd29e4160f6e1473f137831e7665ef074 Mon Sep 17 00:00:00 2001 From: Pedro Igor Date: Tue, 20 Oct 2020 20:19:51 -0300 Subject: [PATCH] Fixing passing system properties and adding http.host option --- distribution/server-x/src/main/content/bin/kc.sh | 2 +- .../main/java/org/keycloak/configuration/PropertyMappers.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/distribution/server-x/src/main/content/bin/kc.sh b/distribution/server-x/src/main/content/bin/kc.sh index dd24a21a70..3a5a1e77b5 100644 --- a/distribution/server-x/src/main/content/bin/kc.sh +++ b/distribution/server-x/src/main/content/bin/kc.sh @@ -46,7 +46,7 @@ do break ;; *) - if [[ $1 = -* || ! $1 =~ ^-.* ]]; then + if [[ $1 = --* || ! $1 =~ ^-.* ]]; then CONFIG_ARGS="$CONFIG_ARGS $1" else SERVER_OPTS="$SERVER_OPTS $1" diff --git a/quarkus/runtime/src/main/java/org/keycloak/configuration/PropertyMappers.java b/quarkus/runtime/src/main/java/org/keycloak/configuration/PropertyMappers.java index 635afe6b93..bebe853d5b 100644 --- a/quarkus/runtime/src/main/java/org/keycloak/configuration/PropertyMappers.java +++ b/quarkus/runtime/src/main/java/org/keycloak/configuration/PropertyMappers.java @@ -71,6 +71,7 @@ public final class PropertyMappers { return enabled ? "enabled" : "disabled"; }, "Enables the HTTP listener."); + createWithDefault("http.host", "quarkus.http.host", "0.0.0.0", "The HTTP host."); createWithDefault("http.port", "quarkus.http.port", String.valueOf(8080), "The HTTP port."); createWithDefault("https.port", "quarkus.http.ssl-port", String.valueOf(8443), "The HTTPS port."); createWithDefault("https.client-auth", "quarkus.http.ssl.client-auth", "none", "Configures the server to require/request client authentication. none, request, required.");