changeset 253:3df209d1fa6a

Improve global-config.properties template. Reviewed-by: jkang Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2017-September/024888.html
author Severin Gehwolf <sgehwolf@redhat.com>
date Thu, 07 Sep 2017 19:09:58 +0200
parents 1428b14f642f
children ad7eb6bf2611
files distribution/src/etc/global-config.properties
diffstat 1 files changed, 25 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/distribution/src/etc/global-config.properties	Tue Sep 05 16:29:38 2017 +0200
+++ b/distribution/src/etc/global-config.properties	Thu Sep 07 19:09:58 2017 +0200
@@ -1,14 +1,13 @@
+#
 # The listen address of the servlet container.
 IP=127.0.0.1
+#
 # The listen port of the servlet container.
 PORT=30000
+#
 # The file specifying which services to deploy in the
 # servlet container.
 properties|SERVICES=services.properties
-# Sets auth scheme to BASIC
-SECURITY_BASIC=true
-# Specifies location of BASIC AUTH credentials
-properties|SECURITY_BASIC_USERS=basic-config.properties
 #
 # Specifies whether or not the swagger UI handler should get
 # created under context path /doc
@@ -37,7 +36,29 @@
 #
 KEYSTORE_FILE=thermostat.jks
 
+#
+# Set default DB config for all microservices.
 MONGO_URL=mongodb://127.0.0.1:27518
 MONGO_DB=thermostat
 MONGO_USERNAME=mongodevuser
 MONGO_PASSWORD=mongodevpassword
+
+########################################
+# Security providers
+########################################
+
+#
+# Sets auth scheme to BASIC
+SECURITY_BASIC=true
+#
+# Specifies location of BASIC AUTH credentials
+properties|SECURITY_BASIC_USERS=basic-config.properties
+#
+# Sets auth scheme to use Keycloak. If set to true
+# SECURITY_BASIC won't be used. It also needs
+# KEYCLOAK_CONFIG to be set (see below).
+SECURITY_KEYCLOAK=false
+#
+# Configuration file for the Keycloak jetty adapter.
+# Only used if SECURITY_KEYCLOAK=true
+#file|KEYCLOAK_CONFIG=keycloak.json