Setup Nginx Reverse Proxy to access PostgreSQL database remotely

In this tutorial, we will be discussing how we can leverage the power of Nginx to create a reverse proxy for our PostgreSQL server. This will allow us to access our PostgreSQL database from remote servers. So for example, let's say you have an app hosted in a vps and you would like to access the app db from your local computer.