Interested, but a few more questions... #1
Replies: 4 comments 11 replies
-
|
Hiya. So based on your assumptions, you'll need to change a few things, both domain entries (being managed by cloudflare) is something that you'll want to change to AWS Route 53 for the cheapest reliable GeoIP DNS provider possible. You can bring your own domain. After changing providers, you'll need to swap over your LE wildcard cert, which you can do (as described in the readme) srv1.example.com would be mapped to the homelab frontdoor ip, yes. The "bouncer ip" is the ip of the VPS, which can be from any vendor you'd like. AWS is expensive for VPSes with alot of bandwidth. I'd suggest looking at DigitalOcean, Hetzner, or even OVH depending on your usecase. magic.conf is a hypothetical second plex server that is being routed through the CDN as well.
The CDN is supposed to resolve to your front door ip AND the VPS ip, dependant on location (which is where aws route53 comes in). You will need the CDN config + nginx on both nodes, then you'll need an additional nginx config (or a secondary mapping on the server actually running plex to the srv1.example.com and srv1.cdn.example.com (or you could do srv1-cdn.example.com) but that's up to you. Feel free to ask again if there's something that isn't clear. /b |
Beta Was this translation helpful? Give feedback.
-
|
The goal of this (my understanding anyway) is to provide a proxy that is physically closer to the intended client than your server is, so you would want a VPS in the same region as the client (ideally on a backbone that has better routing to your server than the client does).
The {region} in the vps name – at least for me – is the physical region that vps is located, so for mine in chicago it is vps.us-ch.example.com.
You do also need a “default” proxy for all other regions. I ran this on the same front door as the rest of my homelab services, and I had to switch to a static port-forward port for my plex, rather than a random assigned one (which was something I was overdue to do anyhow since upnp == bad).
My main challenge now is validating how well it works. I see activity in the vps nginx access log when a in region user connects, but the cache directory is empty and I can’t tell if the video streams are proxying through the VPS or still going directly back to server (there is almost no CPU usage on the VPS during playback…)
From: ***@***.***>
Sent: Tuesday, September 6, 2022 4:28 AM
To: ***@***.***>
Cc: James ***@***.***>; ***@***.***>
Subject: Re: [brettpetch/plex-cdn] Interested, but a few more questions... (Discussion #1)
Would you kindly help the region part of vps1.region.example.com.
What region does one choose here, is it the region you are accessing Plex from (client side) or the region the VPS server is located?
I have a hetzner dedicated server in Germany, which hosts my Plex server.
Would I run the "nginx instance" on the same server?
Where would I need to create the external server (VPS)?
Many thanks
—
Reply to this email directly, view it on GitHub<#1 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AB24ZJWOOWKBTF2OHJD3ZJTV44TGDANCNFSM6AAAAAAQCRWZGU>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Heya, You might want to ensure that ownership of the directories is correct for image caching to work — the name doesn’t matter as much as the geoip record bouncing the correct region. If you enable logging you should be able to see video starts. Ensure that Plex is only advertising the CDN record. Otherwise it’ll be advertising direct connections instead of connecting through the proxy. Could be useful to read up on tuning tcp networking on the OS you’ve chosen as well. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.









Uh oh!
There was an error while loading. Please reload this page.
-
Really interesting setup, thanks for sharing. I host a plex server in my homelab, but despite a 1gbps symmetrical fiber link, some of my family on the other side of the country appear to have peering issues and are sometimes seeing very low bandwidth to my endpoint. I'm curious if this type of setup could help, but I have some gaps in my understanding...
Assumptions:
Questions:
Thanks in advance for helping me learn!
Beta Was this translation helpful? Give feedback.
All reactions