glance icon indicating copy to clipboard operation
glance copied to clipboard

[FEATURE] Serving behind reverse proxy

Open fenying opened this issue 1 year ago • 4 comments

Hi, I wanna serve the glance on a sub path of an existing site, I use below configuration for nginx:

    location /glance {

        proxy_redirect off;
        proxy_pass http://127.0.0.1:48888/;
        proxy_http_version 1.1;
    }

However, the glance page uses the link of static resource like /static/xxx, not a path like /glance/static/xxx.

Can you please add some options like base_url to make this work?

fenying avatar Jun 03 '24 04:06 fenying

Hey, thanks for the suggestion and sorry for the inconvenience!

This is something I do want to add support for, though it'll probably happen in v0.7.0 rather than the next release.

svilenmarkov avatar Jun 06 '24 00:06 svilenmarkov

is it possible to ship it in 0.6.0?

stleon avatar Aug 04 '24 14:08 stleon

@stleon Yup, will do.

svilenmarkov avatar Aug 05 '24 13:08 svilenmarkov

Completed in #167 . This can be closed.

yonas avatar Aug 18 '24 12:08 yonas