Gitlab配置HTTPS

DevOps GitLab评论1,866字数 451阅读1分30秒阅读模式

简述

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

DevOps
  • 本文由 发表于 2023年2月6日 14:08:41
  • 除非特殊声明,本站文章均为原创,转载请务必保留本文链接
GitLab忘记密码 GitLab

GitLab忘记密码

简述 如果密码忘记了登录不进入,可以先尝试点击登录框下方的Forgot your password来通过邮箱的方式找回。 如果邮箱不可以使用了,则看下面的强制找回方法. [root@gi...
评论  0  访客  0

发表评论