campanflaviu / plexius

Plex Web 3.0 Chrome extension for added features https://chrome.google.com/webstore/detail/plexius/cghenlijcboahfbcgiccpnmagdhihiho
MIT License
23 stars 4 forks source link

Sitting behind a Reverse Proxy and CloudFlare #4

Open Cimplex opened 7 years ago

Cimplex commented 7 years ago

Hey! I'm from reddit: https://www.reddit.com/r/PleX/comments/67isd3/missing_and_unaired_episodes_for_plex_web_plexius/dgquz05/

I was looking through my console log and I didn't see anything from plexius. Kind of gave me a clue it wasn't even trying to run? So I thought it might have something to do with my access URL.

I dug a little deeper and this is what I found:

getServerAddresses('https://plex.tv/pms', "==My Plex Token==", console.log)
plexius Failed to ping address for f0359ca77b81114d33ab4039713fa7c371ab3c99 - https://plex.plexbox.us
plexius Failed to ping address for 610b7929-b490-45d2-91bc-b160f7af8d41 - https://plex.plexbox.us
plexius Failed to ping address for f0359ca77b81114d33ab4039713fa7c371ab3c99 - https://XXX-XXX-XXX-XXX.896958481d8343078ff8e49887a6dcf9.plex.direct:32400
plexius Failed to ping address for 610b7929-b490-45d2-91bc-b160f7af8d41 - https://XXX-XXX-XXX-XXX.896958481d8343078ff8e49887a6dcf9.plex.direct:32400

The first two things its trying to ping, should work (you can visit it yourself to see). But I firewalled 32400, so trying to visit the plex direct links will fail. All my Plex traffic is served on 443 (https) and then funneled through CloudFlare. This seems to work for all the Plex clients so far. (Edit: the plex direct links contained my real IP, so censored)

Let me know if you want anymore information. I am not sure if this (reverse proxy and CloudFlare) is something you can support. But thanks for creating a cool project!

Also, I don't have a non-reversed-proxy Plex server at my disposal right now. Later this week, I can do a sanity check to make sure I can at least get it working on a normal setup.

campanflaviu commented 7 years ago

I think this would explain why the extension doesn't work for some other users. I'll look into this asap. Thanks for your feedback!

enchained commented 6 years ago

Can confirm - it does work from my local ip server, but doesn't work when I switch to the remote server that is shared to me (no proxy, just http://domainname.com:32400).