From 183bfcf9d34776e08623019799ac23fa0170629a Mon Sep 17 00:00:00 2001 From: 1000TurquoisePogs Date: Thu, 26 Dec 2024 10:14:49 +0100 Subject: [PATCH] Update apiml.js Signed-off-by: 1000TurquoisePogs --- lib/apiml.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/apiml.js b/lib/apiml.js index 0ffe62c2..6c02a188 100644 --- a/lib/apiml.js +++ b/lib/apiml.js @@ -171,9 +171,8 @@ ApimlConnector.prototype = { httpEnabled: false, httpsEnabled: true }; - const proto = this.isClientAttls ? 'http' : 'https'; - log.debug("ZWED0141I", proto, this.port); //"Protocol:", proto, "Port", port); + log.debug("ZWED0141I", 'https', this.port); //"Protocol:", proto, "Port", port); log.debug("ZWED0142I", JSON.stringify(protocolObject)); //"Protocol Object:", JSON.stringify(protocolObject)); const instance = Object.assign({}, MEDIATION_LAYER_INSTANCE_DEFAULTS(proto, this.hostName, this.port)); @@ -183,9 +182,9 @@ ApimlConnector.prototype = { hostName: this.hostName, ipAddr: this.ipAddr, vipAddress: "zlux",//this.vipAddress, - statusPageUrl: `${proto}://${this.hostName}:${this.port}/server/eureka/info`, - healthCheckUrl: `${proto}://${this.hostName}:${this.port}/server/eureka/health`, - homePageUrl: `${proto}://${this.hostName}:${this.port}/`, + statusPageUrl: `https://${this.hostName}:${this.port}/server/eureka/info`, + healthCheckUrl: `https://${this.hostName}:${this.port}/server/eureka/health`, + homePageUrl: `https://${this.hostName}:${this.port}/`, port: { "$": protocolObject.httpPort, // This is a workaround for the mediation layer "@enabled": ''+protocolObject.httpEnabled