欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 新闻 > 资讯 > GitLab 17.x 配置 https

GitLab 17.x 配置 https

2025/4/19 2:45:56 来源:https://blog.csdn.net/weixin_43215826/article/details/147198947  浏览:    关键词:GitLab 17.x 配置 https

文章目录


使用外部 nginx 参考:https://docs.gitlab.com/omnibus/settings/nginx.html
使用内置 nginx 参考:https://docs.gitlab.com/omnibus/settings/ssl/index.html#configure-https-manually

// 使用自己手工申请证书

$ mkdir /etc/gitlab/ssl
$ mv gitlabtest.xiodi.cn.key gitlabtest.xiodi.cn_bundle.pem /etc/gitlab/ssl/
$ vim /etc/gitlab/gitlab.rb
external_url 'https://gitlabtest.xiodi.cn'
...
nginx['enable'] = true
nginx['ssl_certificate'] = "/etc/gitlab/ssl/gitlabtest.xiodi.cn_bundle.pem"
nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/gitlabtest.xiodi.cn.key"
letsencrypt['enable'] = false$ gitlab-ctl reconfigure

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词