glanceapp / glance

A self-hosted dashboard that puts all your feeds in one place
GNU Affero General Public License v3.0
8.48k stars 295 forks source link

[FEATURE] Serving behind reverse proxy #125

Closed fenying closed 2 months ago

fenying commented 5 months ago

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?

svilenmarkov commented 5 months ago

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.

stleon commented 3 months ago

is it possible to ship it in 0.6.0?

svilenmarkov commented 3 months ago

@stleon Yup, will do.

yonas commented 2 months ago

Completed in #167 . This can be closed.