How to customize gogs as a private server?

I want the explorer and signup page to be completely removed from the ui and backend, and I want to turn the server into a private gateway server that can only create a new account through the database, and only by logging in can repositories be viewed.
How can I apply these settings?