cactuschibre
cactuschibre

Reputation: 2375

Install Gitlab with disabled sign up

I am building an automatic deployment platform containing a Gitlab instance. This Gitlab instance is inside a docker and it is deployed through Ansible.

I would like to customize Gitlab settings before deploying it but after some readings of the documentation, I cannot find how to disable sign up without using the Administration HMI.

Any suggestion ?

Upvotes: 2

Views: 905

Answers (1)

Fairy
Fairy

Reputation: 3780

This docker container is being configured via enviroment variables. What you need to do is to set this variable or create a env-file with your parameters (recommended).

The parameter you are looking for is GITLAB_SIGNUP_ENABLED=false

You do this either with docker run <other parameter> -e GITLAB_SIGNUP_ENABLED=false or with --env-file <path-to-enviroment-vars>.

All configuration switches are here.

Upvotes: 1

Related Questions