mirror of
https://github.com/asapach/peerflix-server.git
synced 2026-04-25 06:35:48 +03:00
[GH-ISSUE #107] Absolute vs. relative paths #93
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @homlett on GitHub (Feb 19, 2017).
Original GitHub issue: https://github.com/asapach/peerflix-server/issues/107
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:
The webui looks for socket.io in
https://domain.name/socket.io/socket.io.jsinstead ofhttps://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
/uploadand/torrents@asapach commented on GitHub (Feb 19, 2017):
If you can get it to work for both relative and absolute urls, PR is welcome.
@homlett commented on GitHub (Feb 19, 2017):
Honestly I never pulled anything because I'm not a real developer. However that looks doable and could be a good start. I'll try, but please be indulgent!