Refactor nginx.conf