Settings for YouTube videos

Hello, I want to record the screen and my voice to upload it on YouTube and I want the best settings for obs , that the file size is not huge. I want to record an hour and the file size is 1giga , for example. I do not want the quality to be wow but acceptable