Gave up on Nginx and ended up just using Node.js with `http-proxy`. I think today I learned to use what I already know, especially when working on a new product, even if it is slower, instead of trying to learn new things.