This is an NGINX configuration to allow plex and deluge reverse proxy.
It gives you the following paths:
On my laptop, I edited
/etc/hosts to include
X.X.X.X media so that I can type
http://media instead of IP.
These files need to be copied/cloned into the NGINX config folder, for example
/etc/nginx on Ubuntu.
media_proxy/htpasswd file using this handy site or native means, whatever you feel comfortable with. This username/password will be prompted for when you try to access the proxy.
sudo service nginx restart
You should be able to open
http://X.X.X.X and see Plex now.