Skip to content

Commit

Permalink
[OGUI-1232] Use consul UI param rather than host and port (#2736)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
graduta authored Jan 29, 2025
1 parent a93a16b commit b66b88d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Control/public/configuration/ConfigByCru.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
}

/**
Expand Down

0 comments on commit b66b88d

Please sign in to comment.