Nginx reverse proxy


#1

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 ).


#2

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 0.0.0.0 aswell?