Nginx reverse proxy

I have an express server running on port 3001, I then have an nginx reverse proxy set up with the config:

server {
	listen 80;
	location / {
		proxy_pass http://localhost:3001;

but when accessing my resin public url - I just get the resin error.

I’ve tried this setup on my local machine and it’s fine. I thought maybe resin just didn’t allow multiple ports to listen - but I can use express to proxy my requests to other express apps ( but I’d rather use nginx ).

Hey @CWright017, I don’t have much experience with nginx, but I was wondering if maybe for some reason localhost doesn’t resolve properly with in the container, have you tried something like aswell?

What does your docker-compose.yml contain? Is port 80 on the nginx container "expose"d and “port” mapped from 80 to 80?