mirror of
https://github.com/asapach/peerflix-server.git
synced 2026-04-25 14:45:50 +03:00
[PR #153] [MERGED] Support for M3U with reverse proxy and https #396
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?
📋 Pull Request Information
Original PR: https://github.com/asapach/peerflix-server/pull/153
Author: @costan1974
Created: 9/14/2018
Status: ✅ Merged
Merged: 9/18/2018
Merged by: @asapach
Base:
master← Head:master📝 Commits (3)
ad782ddSupport for M3U with reverse proxy and httpsc3dace5New approach for proxye5abb0eFix typos📊 Changes
1 file changed (+3 additions, -1 deletions)
View changed files
📝
server/index.js(+3 -1)📄 Description
When downloading M3U files, if the reverse proxy exposes https, the generated URL is exporting the wrong protocol.
This change checks for x-forwarded-proto in the original request and creates the M3U list with the proxy reported protocol.
To allow for this to work with NGINX it sufficent to add the following lines:
The first line let peerflix know the original exposed FQDN:PORT name the client used to reach the proxy, the second header let peerflix know that request was https and not http.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.