update nginx.conf
refactoring