hashicorp / consul

Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.
https://www.consul.io
Other
28.37k stars 4.42k forks source link

Allow add prefix for API url in the UI #9829

Open Rwing opened 3 years ago

Rwing commented 3 years ago

In the reverse proxy case, the Consul mapped to http://example.com/consul, and the correct api url is /consul/v1/aa/bb not /v1/aa/bb, so the url prefix should be allowed to be modified in the UI's javascript, like this https://github.com/hashicorp/consul/blob/be89557fb43a4b752fbd087d9c7f8f96e6566d4c/ui/packages/consul-ui/app/adapters/dc.js#L6

johncowen commented 3 years ago

Hi @Rwing

Thanks for the feature request! We have discussed this within the team and there is already a little thought elsewhere in the UI to allow us to let folks do this.

We also recently added a dedicated config block (ui_config {}) for allowing the operator to configure UI related things as well as just straightforward enable UI/disable UI, so we have most things we would need in place now to be able to do this.

I'll bring it up again with the rest of the team and I'll try and can keep you posted here on any further progress.

thesobercoder commented 3 years ago

@johncowen Any update on this. This is still not working. 😞

johncowen commented 3 years ago

Hi @thesobercoder !

This is something we are actively talking about, and it's something we intend to address. I'd say maybe keep your eyes peeled here and I'll try and keep you updated. Just to be clear, this isn't a feature that exists as yet.

Hopefully I can give some more info soonish.

Thanks!

jkirschner-hashicorp commented 3 years ago

Related to #7928

danparisi commented 11 months ago

Was it fixed here? https://github.com/hashicorp/consul/pull/14342

If yes, can anyone explain how does it work? I cannot find any docs