Hello,
First off, I love node-host/
jsapp.us. I think it's a marvelous idea. So much so that I wanted to run my own version for myself.
I cloned the git repository, made it, made the nginx.conf file correctly (I think, I can't really test it) and ran both master.js and nginx. I'm running Ubuntu Server 12.04.5 LTS, so I can't use a browser to test from the terminal, but when I nc localhost 8080, type "GET /" and press enter a few times, it spews out the frontend. Perfect.
This is where it gets interesting. I'm running this in a VM behind VirtualBox's NAT. The host machine has IP A, and the guest that's running node-host has IP B. I have A:8080 forwarded to B:80. When I request that from a web browser (A:8080), it says "Bad Gateway". I strongly suspect that's because node-host isn't listening for anything except the loopback interface. How can I get this to work? Is it a node-host only listening to the loopback interface for requests or is there something wrong with my nginx config?
Thank you for any help you can provide. I like this a lot and would like to make it work.
Tucker