brettpetch / plex-cdn

This is an example of how to proxy Plex instances through NGINX, caching posters at the edge.
GNU General Public License v3.0
106 stars 7 forks source link

Question about one of the steps #3

Closed Psu798076 closed 1 year ago

Psu798076 commented 2 years ago

Would you mind elaborating here? It looks like there was a typo and I’m not sure what you mean. Where is the normal config being created? Is this on the server with Plex or on the bouncer?

You need to either create 2 configs on the host? 9or be able to use wildcard certs to allow it to serve both on the normal and CDN configs to create a normal config, copy the cdn config, remove the block for images, then change all instances of og_host to host.

brettpetch commented 2 years ago

Indeed. You are correct. I personally use 2 configs on the host.

Psu798076 commented 2 years ago

Thanks. One additional question - the realip.conf - do I set that on both the US bouncer server as well as the Plex server? And if so, what's the values for each server?

brettpetch commented 2 years ago

Thanks. One additional question - the realip.conf - do I set that on both the US bouncer server as well as the Plex server? And if so, what's the values for each server?

It goes on both— it will fix Plex’s ip resolution and resolve correct ips for clients. The contents of the file are very similar. Simply change out the values & add any additional bouncers, then load the config.

pmscloudeu commented 2 years ago

Indeed. You are correct. I personally use 2 configs on the host.

What do you mean by 2 configs on the host?

brettpetch commented 2 years ago

Hi there, I've updated this to be more clear.

Please see https://github.com/brettpetch/plex-cdn/blob/main/sites-enabled/plex.conf