But, as my current teacher likes to point out, there's no "true" way. He's a bassist, and has mentioned to me a few times some old survey asking pro players to write out their fingerings for some famous passages -- the results were all over the place, as everyone brings their own approach.
[1] https://archive.org/details/BACHCarlPhilippeEmanuel.EssayOnT...
Each diatonic (major, minor or modal) scale consists of 7 distinct notes, and the fingering is always 1-2-3 1-2-3-4 in one direction, and the reverse in the other direction, however, you need to find where this sequence starts within the scale. The more black keys there are in a scale, the fewer the possible comfortable positions. Always put your thumb on a white key, and prefer putting your 3rd and especially your 4th fingers on black keys, if possible. (Fun fact: for the major scales, once you have your right hand's fingering, you can imagine mirroring the keyboard and your hand around the D or G# key and you get another major scale with a good fingering for the left hand).
DO NOT start with C major if it's your first time learning scales. Maybe start with E major (4 sharps) as it is comfortable and you can use the mirrored fingering in the other hand.
Knowing the fingerings is a good start, but you need to learn to do these exercises without tension and with proper posture and hand movements. This is something where it's best to have in-person instruction from an expert who can show you the technique and correct your mistakes. But if you can't do that, maybe the next best thing would be to watch some YouTube videos and record yourself playing.