Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use relative path to support nginx proxy_pass #19

Open
Smart123s opened this issue Dec 31, 2021 · 0 comments
Open

Use relative path to support nginx proxy_pass #19

Smart123s opened this issue Dec 31, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Smart123s
Copy link

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

@spocon spocon self-assigned this Dec 31, 2021
@spocon spocon added the enhancement New feature or request label Dec 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants