微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

ubuntu – 为Ominbus安装程序启用GitLab Community Edition的HTTPS自签名证书

我有一个Omnibus gitlab安装程序.我正在尝试使用自签名证书设置HTTPS网址.我使用Ubuntu 14.04作为我的主机操作系统.以下步骤是:

修改了gitlab.rb

external_url 'https://gitlab.example.com'
Nginx['redirect_http_to_https'] = true

使用适当的名称创建自签名证书,并将其置于/ etc / gitlab / ssl下,权限为600

-rw------- 1 root root 1289 Sep 5 08:38 gitlab.example.com.crt
-rw------- 1 root root 1679 Sep 5 08:38 gitlab.example.com.key

然后我做了gitlab-reconfigure并重启.

因此,当我尝试新的URL:https://gitlab.example.com时,页面无法加载.

端口443认是打开的,我能够netcap相同.

我正在关注此博客的设置 – GitLab HTTPS with selfsigned

我没有在/ var / log / gitlab下看到任何错误

自签名证书是否需要额外的Nginx配置?

有人可以让我知道我应该寻找什么日志,我错过了任何步骤.

解决方法:

官方文档是“Settings NGiNXd

检查issue 1374是否与您的情况相关.

gitlab_rails['registry_key_path'] = "/etc/gitlab/ssl/gitlab.example.com.key"
registry['rootcertbundle'] = "/etc/gitlab/ssl/gitlab.example.com.crt"

You do not need to specify these two as per documentation on enabling Registry. These two are for internal communication and are auto generated.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐