Setting up dynmap thru NGINX and getting 502 Bad Gateway

So I followed this:

https://docs.phoenixnodes.com/advanced-guides/install-nginx-reverse-proxy-on-ubuntu-18.04-for-dynmap

Everything seemed to run but when I try to go to my map link, it passes thru cloudflare without an issue but im getting bad gateway. I have port 5004 open which is what im using for the map. Its on a dedicated server so I have full control over NGINX/ports etc.

Not sure what logs ar eneeded or what to do from there ive been hitting my head on this for 30 minutes
Was this page helpful?