properly configure nginx and build node deps