diff options
Diffstat (limited to 'policy-management/src/main')
-rw-r--r-- | policy-management/src/main/server-gen/bin/telemetry | 7 |
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 |