mirror of
https://github.com/asapach/peerflix-server.git
synced 2026-04-25 14:45:50 +03:00
[GH-ISSUE #34] Can't use magnet links and uploading torrent file while using authentication #26
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 @Slyneth on GitHub (Apr 13, 2015).
Original GitHub issue: https://github.com/asapach/peerflix-server/issues/34
I am using peerflix-server on my VPS, I set it up like this:
TCP 9000 port is blocked on the firewall.
I can drag and drop files, watch in local with mpv (couldn't watch without /torrents/), web page is password protected; but adding magnet links and clicking Download or using uploading function doesn't work.
And they work if I add 9000/tcp to my firewall and connect directly using domain.com:9000, but then authentication doesn't work.
@asapach commented on GitHub (Apr 13, 2015):
You don't need to specify
proxy_set_headerfor/torrents/-- those are only needed forsocket.io.@Slyneth commented on GitHub (Apr 13, 2015):
Thanks, fixed it. But still doesn't work.
@asapach commented on GitHub (Apr 13, 2015):
And if you comment out the
/torrents/section, does it work?@Slyneth commented on GitHub (Apr 13, 2015):
It works, but streaming to my local machine doesn't. HTTP authentication gets in the way.
@asapach commented on GitHub (Apr 13, 2015):
OK, could you try something like this:
It should in theory only ask for password when you try to change something:
POST,PUTorDELETE@Slyneth commented on GitHub (Apr 13, 2015):
Doesn't work. Streaming does but magnets and upload doesn't.
@asapach commented on GitHub (Apr 13, 2015):
Do you see any errors in the logs? In the browser console? Can you paste request/response here?
@Slyneth commented on GitHub (Apr 13, 2015):
My config and yours gives the same error:
@Slyneth commented on GitHub (Apr 13, 2015):
I have managed to get Download button working, uploading still doesn't. But uploading isn't that important, I can drag&drop files. And all the page is protected this way:
Streaming to local works well too.
@asapach commented on GitHub (Apr 13, 2015):
It seems like the upload button is broken even without nginx proxy. Created a new bug: #35
Do magnet links work?
@Slyneth commented on GitHub (Apr 13, 2015):
Magnet links and torrent download links work in the last config I pasted. Problem was /torrents/, /torrents fixed it.
Thanks for your help =)
@asapach commented on GitHub (Apr 13, 2015):
np