{"action":"created","issue":{"url":"https://api.github.com/repos/asapach/peerflix-server/issues/153","repository_url":"https://api.github.com/repos/asapach/peerflix-server","labels_url":"https://api.github.com/repos/asapach/peerflix-server/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/asapach/peerflix-server/issues/153/comments","events_url":"https://api.github.com/repos/asapach/peerflix-server/issues/153/events","html_url":"https://github.com/asapach/peerflix-server/pull/153","id":360397815,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1NjY2NzM4","number":153,"title":"Support for M3U with reverse proxy and https","user":{"login":"costan1974","id":43278602,"node_id":"MDQ6VXNlcjQzMjc4NjAy","avatar_url":"https://avatars1.githubusercontent.com/u/43278602?v=4","gravatar_id":"","url":"https://api.github.com/users/costan1974","html_url":"https://github.com/costan1974","followers_url":"https://api.github.com/users/costan1974/followers","following_url":"https://api.github.com/users/costan1974/following{/other_user}","gists_url":"https://api.github.com/users/costan1974/gists{/gist_id}","starred_url":"https://api.github.com/users/costan1974/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/costan1974/subscriptions","organizations_url":"https://api.github.com/users/costan1974/orgs","repos_url":"https://api.github.com/users/costan1974/repos","events_url":"https://api.github.com/users/costan1974/events{/privacy}","received_events_url":"https://api.github.com/users/costan1974/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-09-14T17:52:15Z","updated_at":"2018-09-17T13:56:32Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/asapach/peerflix-server/pulls/153","html_url":"https://github.com/asapach/peerflix-server/pull/153","diff_url":"https://github.com/asapach/peerflix-server/pull/153.diff","patch_url":"https://github.com/asapach/peerflix-server/pull/153.patch"},"body":"When downloading M3U files, if the reverse proxy exposes https, the generated URL is exporting the wrong protocol.\r\nThis change checks for x-forwarded-proto in the original request and creates the M3U list with the proxy reported protocol.\r\n\r\nTo allow for this to work with NGINX it sufficent to add the following lines:\r\n\r\n                proxy_set_header Host $http_host;\r\n                proxy_set_header X-Forwarded-Proto https;\r\n\r\nThe 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."},"comment":{"url":"https://api.github.com/repos/asapach/peerflix-server/issues/comments/422026675","html_url":"https://github.com/asapach/peerflix-server/pull/153#issuecomment-422026675","issue_url":"https://api.github.com/repos/asapach/peerflix-server/issues/153","id":422026675,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjAyNjY3NQ==","user":{"login":"costan1974","id":43278602,"node_id":"MDQ6VXNlcjQzMjc4NjAy","avatar_url":"https://avatars1.githubusercontent.com/u/43278602?v=4","gravatar_id":"","url":"https://api.github.com/users/costan1974","html_url":"https://github.com/costan1974","followers_url":"https://api.github.com/users/costan1974/followers","following_url":"https://api.github.com/users/costan1974/following{/other_user}","gists_url":"https://api.github.com/users/costan1974/gists{/gist_id}","starred_url":"https://api.github.com/users/costan1974/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/costan1974/subscriptions","organizations_url":"https://api.github.com/users/costan1974/orgs","repos_url":"https://api.github.com/users/costan1974/repos","events_url":"https://api.github.com/users/costan1974/events{/privacy}","received_events_url":"https://api.github.com/users/costan1974/received_events","type":"User","site_admin":false},"created_at":"2018-09-17T13:56:32Z","updated_at":"2018-09-17T13:56:32Z","author_association":"NONE","body":"> Could you please try it out and see if it works for you?\r\n\r\nI'm not sure how to set the \"trust proxy\" option. Do you have a quick solution for your original code for me to check?\r\n"}}
{"actor":{"display_login":"costan1974"}}