

You are about to be asked to enter information that will be incorporated

Let first generate the private key using openssl command, :~$ sudo openssl genrsa -des3 -out /etc/gitlab/ssl/ 2048Ĭreate the CSR using below command, :~$ sudo openssl req -new -key /etc/gitlab/ssl/ -out /etc/gitlab/ssl/Įnter pass phrase for /etc/gitlab/ssl/: Now let’s create following folder and generate self-sign certificates using openssl command :~$ sudo mkdir -p /etc/gitlab/ssl In next screen we will get the below screen, Now login with the user name with “ root” and the password that we have set in above step,Īs of now our GitLab Server is working on http (80) protocol, if you want to enable https for your GitLab portal, then refer the below step, 5) Configure https for your GitLab ServerĪll the important configuration for Gitlab server is controlled by the file “ /etc/gitlab/gitlab.rb” So edit this file, search “ external_url” and add the “ ” in front of external_url parameter :~$ sudo vi /etc/gitlab/gitlab.rb Open your favorite web browser and type the url įirst time, it prompt us to set the password, so specify the password and the click on “Change your password” :~$ 4) Access GitLab Server from Web browser Note : If OS firewall is enabled on your server, then allow 80 and 443 ports, on Ubuntu Servers ufw is default firewall, :~$ sudo ufw allow http Once the above the command is executed successfully, we will get output something like below, Run the beneath command to install and configure gitlab-ce on your server automatically, replace the server’s hostname as your setup, :~$ sudo EXTERNAL_URL="" apt-get install gitlab-ce Output of above curl command would be something like below:ģ) Install GitLab CE package using apt command Run the below curl command, which will download the gitlab-ce script and will configure package repository :~$ curl -sS | sudo bash 2) Setup GitLab CE package repository via script :~$ sudo apt install curl openssh-server ca-certificates postfix -yĪbove command will prompt you how you want to configure Postfix sever, select the option which suits to your environment. Login to your Ubuntu 16.04 / 18.04 server and run the following apt commands to install gitlab dependencies, :~$ sudo apt update
