nginx proxy server localhost permission denied
I was able to find a solution after 2 days of searching. Somehow SELinux was not permitting Nginx to proxy to my server. Running the command below fixed the issue.
/usr/sbin/setsebool -P httpd_can_network_connect true
Adding the -P flag thanks to @DaveTrux