spocon / lovspotify

Spotify GUI + Spotify Client for Raspberry PI , Ubuntu and Debian
54 stars 4 forks source link

Use relative path to support nginx proxy_pass #19

Open Smart123s opened 2 years ago

Smart123s commented 2 years ago

I have set up lovspotify to use port 9098. It is accessible from my PC at 192.168.1.215:9098. However, I want to access it through my nginx server.

I have set up a reverse proxy in nginx with the following configuration:

  location /lovespotify {
    proxy_pass       http://127.0.0.1:9098/;
  }

Now, when I try to access the server at https://192.168.1.215/lovespotify/, I only get a white sceern. The initial html loads, but then the app tries to load assets from the root of the webage (/), and not from /lovespotify/.

It would be useful, if the site would fetch assets from ./ instead of /.

Firefox network logs:

image