Refactor nginx conf.

I'm only learning this stuff now!