Go back

Disable/Enable User Signup page

By default, anyone having access to Gitness VM UI can click on “Sign Up” link on login page or goto https://vmpublicip/register page and create a user. If you want to disable this behavior and want only admin to be able to create/signup new user, then follow below steps.

  1. connect to vm using terminal and navigate to Gitness directory by running below command in terminal.
cd /home/ubuntu/gitness

/img/gcp/gitness/terminal.png

  1. To disbale user signup, run below command.
sudo sh disable-user-signup.sh

/img/gcp/gitness/run-disable-script.png

  1. Then run below docker command to make sure gitness docker container is restarted.
sudo docker ps

/img/gcp/gitness/docker-status.png

  1. After executing the “disable user signup” script, user won’t be able to signup themselves. Only admin can add new users by going to admin panel via https://vm-public-ip/users .

/img/gcp/gitness/user-signup-is-disable.png

Once admin user is logged in to Gitness UI, navigate to User Management link at the bottom left and click on New User button.

/img/gcp/gitness/create-new-user.png

  1. If you want to enable user signup then run below enable script.
sudo sh enable-user-signup.sh

/img/gcp/gitness/run-enable-script.png

  1. Once again run the docker command to make sure gitness docker container is restarted. After executing the “enable user signup” script, user will be able to signup themselves. Admin can also add new users by going to admin panel via https://vm-public-ip/users
sudo docker ps

/img/gcp/gitness/docker-status-2.png

Go back