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

Absolute vs. relative paths #107

Open
homlett opened this issue Feb 19, 2017 · 2 comments
Open

Absolute vs. relative paths #107

homlett opened this issue Feb 19, 2017 · 2 comments

Comments

@homlett
Copy link

homlett commented Feb 19, 2017

The webui is broken when used behind a reverse proxy under a directory because of some absolute paths. For example, with this handy nginx configuration, it's not working:

location /peerflix/ {
        proxy_pass        http://127.0.0.1:9000/;
}

The webui looks for socket.io in https://domain.name/socket.io/socket.io.js instead of https://domain.name/peerflix/socket.io/socket.io.js. In index.html <script src="/socket.io/socket.io.js"></script> should be replaced by <script src="socket.io/socket.io.js"></script>

Same thing happens with paths to fonts in stylesheets and at least with /upload and /torrents

@asapach
Copy link
Owner

asapach commented Feb 19, 2017

If you can get it to work for both relative and absolute urls, PR is welcome.

@homlett
Copy link
Author

homlett commented Feb 19, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants