From bef86734fe83b30681df6a73a0ce930e2529c2f8 Mon Sep 17 00:00:00 2001 From: jhh Date: Wed, 6 Oct 2021 17:06:20 -0500 Subject: Check https environment var in telemetry tool Issue-ID: POLICY-3706 Signed-off-by: jhh Change-Id: I4f473cd8a3852deefee6e449931eabde66bedeba Signed-off-by: jhh --- policy-management/src/main/server-gen/bin/telemetry | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/policy-management/src/main/server-gen/bin/telemetry b/policy-management/src/main/server-gen/bin/telemetry index 454f11ed..1ded3326 100644 --- a/policy-management/src/main/server-gen/bin/telemetry +++ b/policy-management/src/main/server-gen/bin/telemetry @@ -39,6 +39,13 @@ if [ -n "${TELEMETRY_USER}" ]; then fi PROTOCOL="http" + +# use environment flag if set +if [ $HTTP_SERVER_HTTPS == "true" ]; then + PROTOCOL="https" +fi + +# it takes precedence to have https explicitly set over the environment variable if egrep "^http\.server\.services\..*CONFIG\.https.*=.*true" ${POLICY_HOME}/config/engine.properties; then PROTOCOL="https" fi -- cgit 1.2.3-korg