upstream postgres_backend { server 192.168.1.188:5432; } server { listen 5432; proxy_pass postgres_backend; }