Depends on what spindle motor you have.
If it's the high speed water cooled Chinese ones then it's to the VFD. If it's something like a Kress then you need a variable speed power supply