parse upstream conf