lenses-docker icon indicating copy to clipboard operation
lenses-docker copied to clipboard

Lenses behind reverse-proxy

Open Chrislevi opened this issue 5 years ago • 5 comments

Hey, currently I'm having trouble accessing lenses UI through our reverse-proxy(Traefik). since the dashboard landing page is '/' with a redirect.. We're working with PathPrefix to filter between different services behind a 443 proxy, Lenses is one of them. according to Traefik's devs https://community.containo.us/t/why-doesnt-traefik-readd-pathprefix-prefixes-to-backend-responses/1240 there is no way to add this prefix to lenses responds so the possible solution is only to configure a corrolating pathprefix both to Traefik and Lenses.

I'm having trouble finding this configuration property in Lenses docs. Is is possible to change the Lenses UI url prefix?

Chrislevi avatar Nov 19 '19 13:11 Chrislevi

Hi @Chrislevi we don't support right now PathPrefix. Lenses for now can run only under root path or subdomain, we are working on it to support this in a better manner.

I will recommend you to do it with sudomains in your traefik. eg. lenses.traefik.com. We follow the same approach internally for our dev environments with Traefik. So you can have multiple services under the same traefik with subdomains.

spirosoik avatar Nov 19 '19 14:11 spirosoik

I have some certain constraints regarding sudomains, so its kinda off the table. its the main reason why we're sticking to PathPrefix.

Is it planned for the near future?

Chrislevi avatar Nov 19 '19 21:11 Chrislevi

I understand. We have some limitations in our current codebase right now which need to be removed first in order to support it, so I hope some time in the next quarter probably.

spirosoik avatar Nov 20 '19 07:11 spirosoik

Is there any news regarding this issue? @spirosoik

Chrislevi avatar Mar 23 '20 11:03 Chrislevi

Not yet @Chrislevi , we are still have this task in the queue though.

spirosoik avatar Mar 24 '20 21:03 spirosoik