How to disable API/web endpoints?

How do I disable the API and web components of gitlab ?
While it seems weird, I want to use gitlab as git access control only. So only git commands should be forwarded to gitlab, for example:
git clone -> goes to gitlab (should work over ssh and http) -> page doesn’t exist (or whatever hosted on
GET/PUT… -> page doesn’t exists

Thank you,

gitlab-shell talks to GitLab via its API, so even if you find a way to disable it will not work at all.