This configuration will allow you to serve Plex via Nginx. Rediesigned to support multiple plex servers behind a single nginx gateway
Nginx
Plex:
- Remote Access - Disable
- Network - Custom server access URLs =
https://<your-domain>:443,http://<your-domain>:80 - Network - Secure connections = Preferred.
- (Please note you can force ssl by setting required and not adding the http url, however some players which do not support https will no longer function).
UFW or other firewall:
- Deny port 32400 externally (Plex still pings over 32400, some clients may use 32400 by mistake despite 443 and 80 being set).
CloudFlare:
- SSL set to at least Full.
- Firewall disabled if an abnormal amount of load is expected.
- Multiple plex server configs
- Multple PlexPy config with Proxy_Redirect (may not be required, but needed on my setup)
- Ombi Request config
- Certbot path exemption (for letsencrypt certificate)
- Smart TV Fix (if there is one)
- Chrome Pause fix
- This guide was my goto, though I did it all with a single IP and no apache: https://quickbox.io/wiki/set-up-a-cdn-for-plex-with-cloudflare-nginx/