Configuration to serve Plex Media Center https://plex.tv using Nginx https://nginx.com
This configuration will allow you to serve Plex via Nginx.
Nginx
Plex:
https://<your-domain>:443,http://<your-domain>:80
Note you can force SSL by setting required and not adding the HTTP URL, however some players which do not support HTTPS (e.g: Roku, Playstations, some SmartTVs) will no longer function.
UFW or other firewall:
allowLocalhostOnly="1"
to your Preferences.xml, will make Plex only listen on the localhost, achieving the same thing as using a firewall.