我有一个 Omnibus gitlab 安装程序。我正在尝试使用自签名证书设置 HTTPS url。我使用 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.
关于ubuntu - 为 Ominbus 安装程序的 GitLab 社区版启用 HTTPS 自签名证书,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39356693/