ubuntu - 为 Ominbus 安装程序的 GitLab 社区版启用 HTTPS 自签名证书

标签 ubuntu ssl nginx https gitlab

我有一个 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/

相关文章:

java - 间歇性 NGINX 错误 : client sent invalid chunked body

c++ - 用于 C/C++ 开发的 Mac 与 Ubuntu?

ssl - .pem 和 .cer 可以互换吗?

php - HTTP ://wrapper is disabled in the server configuration by allow_url_fopen=0 in

javascript - 不使用 ssl 发送应用请求

php - Docker:nginx+mariadb+php+redis的docker-compose.yml文件

ruby-on-rails - 如何使用Nginx/Passenger服务多个站点?

Tomcat 访问 NFS - 无法读取新文件

python - 将文档转换为 pdf 格式的有效方法

ubuntu - 为什么命令行完成不适用于 cc?