nginx configs refactoring