...
Code Block |
---|
sudo yum -y install curl policycoreutils openssh-server openssh-clients postfixsudo systemctl start sshd sudo systemctl start postfix sudo systemctl enable sshd sudo systemctl enable postfix |
STEP 2. Install GitLab
GitLab provides an installer for adding the GitLab CE repository. You can do the necessary things by below command lines.
Code Block |
---|
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash sudo yum -y install gitlab-ce |
STEP 3. Configure GitLab URL
You need to run vi /etc/gitlab/gitlab.rb and change external_url with the domain name 'gitlab.hakase-labs.co'.
Code Block |
---|
external_url 'http://gitlab.hakase-labs.co' |
STEP 4. Generate SSL
Code Block |
---|
sudo yum -y install letsencrypt letsencrypt certonly --standalone -d gitlab.hakase-labs.co |
...