How is the license must be displayed in the closed source code and in the finished software?

I’m studying the issue of proprietary licensing of closed source code in a private repository.
Tell me, please, how to create a license for closed code in a private repository? Where to put the license, are there any requirements for this, documents? Is it right to make licensed comments in each sourcefile?