- 開啟 Let’s Encrypt https證書
# vim /etc/gitlab/gitlab.rb 配置文件地址
letsencrypt['enable'] = true # GitLab 10.5 and 10.6 require this option
external_url "https://gitlab.example.com" # Must use https protocol
letsencrypt['contact_emails'] = ['foo@email.com'] # Optional
# https證書檢測(cè)
# This example renews every 7th day at 12:30
letsencrypt['auto_renew_hour'] = "12"
letsencrypt['auto_renew_minute'] = "30"
letsencrypt['auto_renew_day_of_month'] = "*/7"
- 重啟配置
sudo gitlab-ctl reconfigure
sudo gitlab-ctl renew-le-certs