summaryrefslogtreecommitdiffstats
path: root/policy-management/src/main
diff options
context:
space:
mode:
authorjhh <jorge.hernandez-herrero@att.com>2021-10-06 17:06:20 -0500
committerjhh <jorge.hernandez-herrero@att.com>2021-10-06 17:43:46 -0500
commitbef86734fe83b30681df6a73a0ce930e2529c2f8 (patch)
treebefca704c759861c188e4a293abfdccb8776c6bd /policy-management/src/main
parent91774239eba5db5dfbb57c8491e0e4bfe06eb383 (diff)
Check https environment var in telemetry tool
Issue-ID: POLICY-3706 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I4f473cd8a3852deefee6e449931eabde66bedeba Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Diffstat (limited to 'policy-management/src/main')
-rw-r--r--policy-management/src/main/server-gen/bin/telemetry7
1 files changed, 7 insertions, 0 deletions
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