Installer GitLab sur Debian
Prérequis :
sudo apt update
sudo apt install ca-certificates curl openssh-server postfix
Ajout du dépôt pour installer GitLab :
cd /tmp
wget https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh
bash script.deb.sh
Installation de GitLab :
apt install gitlab-ce
Modification de la configuration de GitLab :
nano /etc/gitlab/gitlab.rb
# Modifier l'url selons vos besoins
external_url "https://gitlab.nehemiebarkia.fr"
# Disable nginx
nginx['enable'] = false
# Give apache user privileges to listen to gitLab
web_server['external_users'] = ['www-data']
#Configure push and pull on server repositories
gitlab_workhorse['enable'] = true
gitlab_workhorse['listen_network'] = "tcp"
gitlab_workhorse['listen_addr'] = "localhost:8181"
Autorisation d'accès à gitlab_workhorse :
echo# `Création du fichier de configuration
nano /etc/default/gitlab
gitlab_workhorse_options="-listenUmask 0 -listenNetwork tcp -listenAddr 127.0.0.1:8181 -authBackend http://127.0.0.1:8080"` > /etc/default/gitlab