gitlab-ce及证书创建如下:
761 sudo yum install -y curl policycoreutils-python openssh-server
762 sudo systemctl enable sshd
763 sudo systemctl start sshd
764 sudo firewall-cmd --permanent --add-service=http
765 sudo systemctl reload firewalld
766 sudo yum install postfix
767 sudo systemctl enable postfix
768 sudo systemctl start postfix
769 curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
770 sudo EXTERNAL_URL="http://gitlab.carpfie.cn" yum install -y gitlab-ce
771 history
772 mkdir -p /etc/gitlab/ssl
773 openssl genrsa -out "/etc/gitlab/ssl/gitlab.carpfie.cn.key"
774 openssl req -new -key "/etc/gitlab/ssl/gitlab.carpfie.cn.key" -out "/etc/gitlab/ssl/gitlab.carpfie.cn.csr"
775 openssl x509 -req -days 365 -in "/etc/gitlab/ssl/gitlab.carpfie.cn.csr" -signkey "/etc/gitlab/ssl/gitlab.carpfie.cn.key" -out "/etc/gitlab/ssl/gitlab.carpfie.cn.crt"
776 openssl dhparam -out /etc/gitlab/ssl/dhparams.pem 2048
gitlab.rb参数修改如下
gitlab-http.conf配置如下