The only instructions I can find for implementing Nginx for SSL are here;

I've tried it and variations of it, but can't get it to work. I keep getting 502 Bad Gateway from the Nginx server.

It would seem that I need to make changes to the Tomcat server.xml file as well as create the Nginx configuration file, but without understanding how this all works, I don't know how to go about troubleshooting.

Setting up Nginx as a reverse proxy for SSL is a common enough requirement, yet there's next to no information about how this works with Pentaho.

Can someone give me an example from thier nginx config and server.xml file?