1. 程式人生 > 其它 >|NO.Z.00012|——————————|^^ 配置 ^^|——|CI/CD&GitLab配置 .V02|----------------------------------------------------|GitLab.Server&Https配置|

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



[CloudNative:CI/CD&GitLab配置.V02]                                                                    [Applications.CloudNative] [|CI/CD|分散式版本控制系統|**3節點**|Jenkins|Git|——|Gitlab語言環境|Gitlab初始化|] [https|smtp|Gitlab取消使用者自動註冊|ssh|gitlab資料備份|定時備份|gitlab資料恢復|gitlab管理k8s叢集|]








一、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'] = ['[email protected]'] 








===============================END===============================


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



來自為知筆記(Wiz)