refactored nginx.conf