Refactored nginx.conf