美文网首页
Gitlab 开启https

Gitlab 开启https

作者: 舒官人 | 来源:发表于2020-03-07 14:08 被阅读0次
  1. 开启 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证书检测
# 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"
  1. 重启配置

sudo gitlab-ctl reconfigure
sudo gitlab-ctl renew-le-certs

相关文章

网友评论

      本文标题:Gitlab 开启https

      本文链接:https://www.haomeiwen.com/subject/hzkcdhtx.html