How to serve Vault UI with a different base path?

Hello,

I’ve deployed Vault behind Kong gateway and I’d like to acess the UI through an URL like https://mydomain.com/vault/ but then Vault redirects to https://mydomain.com/ui/.

Usually with other services like Grafana there is a way to provide a base path when using a reverse proxy but I didn’t find it on the UI configuration’s documentation.

I believe Consul has a -ui-content-path flag that allows this. Is there any equivalent for Vault? If not, does anybody know a workaround?

Thank you.

2 Likes

Running into a similar issue myself. In my case I’m proxying using http-proxy-middleware on express for Node. I was considering intercepting the upstream response and manually injecting a base href or even overwriting URLs. Slightly hacky I know but until there’s official support for a flag, it’ll have to do.

I’ll post back here if I have any success.

1 Like

do you get solution of the above problem ,if yes please let me know…