Gitlab配置HTTPS

DevOps GitLab评论3,687字数 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
  • 除非特殊声明,本站文章均为原创,转载请务必保留本文链接
Git仓库迁移 GitLab

Git仓库迁移

一、简述 为简化管理与维护流程,我们将进行Git仓库迁移,由GitHub转移至自建GitLab平台。本次迁移无需您手动转移代码至GitLab,仅需在下班前,确保将本地所有代码更新同步至GitHu...
Ubuntu Server 22.04.1安装Gitlab Ubuntu

Ubuntu Server 22.04.1安装Gitlab

简述 Gitlab是一个利用Ruby on Rails开发的开源应用程序,实现一个自托管的Git项目仓库,可通过Web界面进行访问公开的或者私人的项目 Gitlab拥有与Github类似的功...
评论  0  访客  0

发表评论