|NO.Z.00012|——————————|^^ 配置 ^^|——|CI/CD&GitLab配置 .V02|——|GitLab.Server&Https配置|

一、gitlab server 配置——https
### --- gitlab配置https(缺少配置)
### --- https配置说明

~~~     如果想要以上的 https 方式正常生效使用,
~~~     则需要把 letsencrypt 自动生成证书的配置打开,
~~~     这样在执行重新让配置生效命令 (gitlab-ctl reconfigure) 的时候会自动给域名生成免费的证书
~~~     并自动在 gitlab 自带的 nginx 中加上相关的跳转配置,都是全自动的,非常方便。
二、配置https配置参数
### --- 配置https配置参数
~~~     如果因为这行报错,改成false即可
~~~     添加联系人的电子邮件地址

[root@server11 ~]# vim /etc/gitlab/gitlab.rb
letsencrypt['enable'] = true                           
letsencrypt['contact_emails'] = ['yanqi_vip@yeah.net'] 

 
 
 
 
 
 
 
 
 

Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart
                                                                                                                                                   ——W.S.Landor

 

 

posted on 2022-03-27 15:51  yanqi_vip  阅读(32)  评论(0)    收藏  举报

导航