If you're considering hosting Github Enterprise on-prem then it might be worth considering Forgejo too. It's the system that powers Codeberg.
Codeberg doesn't allow proprietary code, only open-source. You'd have to self-host Forgejo if you want to use it for private projects.