From b66b88de6c5fc25c66a13041fff10354017482c0 Mon Sep 17 00:00:00 2001 From: George Raduta Date: Wed, 29 Jan 2025 17:44:55 +0100 Subject: [PATCH] [OGUI-1232] Use consul UI param rather than host and port (#2736) * uses the `consul.ui` public config parameter instead of hostname and port. * on the back-end the parameter is built depending on the current deployment, thus if UI is not defined (such as dedicated nginx server), the parameter `ui` will be built based on known hostname and port as before --- Control/public/configuration/ConfigByCru.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Control/public/configuration/ConfigByCru.js b/Control/public/configuration/ConfigByCru.js index a59082958..0e7695310 100644 --- a/Control/public/configuration/ConfigByCru.js +++ b/Control/public/configuration/ConfigByCru.js @@ -263,7 +263,7 @@ export default class Config extends Observable { */ getConsulConfigURL() { const consul = COG.CONSUL; - return `${consul.protocol}://${consul.hostname}:${consul.port}/${consul.kVPrefix}/${consul.readoutCardPath}`; + return `${consul.protocol}://${consul.ui}/${consul.kVPrefix}/${consul.readoutCardPath}`; } /**