#systemctl stop firewalld
#systemctl disable firewalld
# vi /etc/sysconfig/selinux
SELINUX=disabled
# reboot
#sudo yum -y install curl policycoreutils openssh-server openssh-clients postfix
sudo mkdir -p /etc/gitlab/ssl
sudo openssl genrsa -out "/etc/gitlab/ssl/gitlab.example.com.key" 2048
sudo openssl req -new -key "/etc/gitlab/ssl/gitlab.example.com.key" -out "/etc/gitlab/ssl/gitlab.example.com.csr"
sudo openssl x509 -req -days 365 -in "/etc/gitlab/ssl/gitlab.example.com.csr" -signkey "/etc/gitlab/ssl/gitlab.example.com.key" -out "/etc/gitlab/ssl/gitlab.example.com.crt"
sudo openssl dhparam -out /etc/gitlab/ssl/dhparams 2048
鍒濆鍖杇itlab鐩稿叧鏈嶅姟骞跺畬鎴愬畨瑁
vi /etc/gitlab/gitlab.rb
external_url 'https://gitlab.example.com'
nginx['redirect_http_to_https_port'] = true
nginx['ssl_certificate'] = "/etc/gitlab/ssl/gitlab.example.com.crt"
nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/gitlab.example.com.key"
nginx['ssl_dhparam] = "/etc/gitlab/ssl/dhparams.pem"
# gitlab-ctl reconfigure
鍙戣〃鍥炲