简述
gitlab最新是开启https会自动配置,但只有三个月有效期,使用自己设的加密证书应设置。
配置
[root@iZ8vb3ycs3gfmlbmyxy6efZ ~]# vim /etc/gitlab/gitlab.rb external_url 'https://gitlab.1.com' letsencrypt['enable'] = false letsencrypt['auto_renew'] = false nginx['redirect_http_to_https'] = true nginx['ssl_certificate'] = "/root/ssl/8305759__1.com.pem" nginx['ssl_certificate_key'] = "/root/ssl/8305759__1.key"
使配置生效
[root@iZ8vb3ycs3gfmlbmyxy6efZ ~]# gitlab-ctl reconfigure [root@iZ8vb3ycs3gfmlbmyxy6efZ ~]# gitlab-ctl restart
评论