【发布时间】:2016-07-11 04:34:52
【问题描述】:
我正在尝试在我的服务器上设置具有 SSL 支持的 gitlab。我在 nginx 设置中为 gitlab 使用了不同的端口,如下所示:
external_url 'https://myserver.com:2440
nginx['redirect_http_to_https'] = true
我还将 SSL 证书设置为:
nginx['ssl_client_certificate'] = '/etc/ssl/AlphaSSLroot.crt'
nginx['ssl_certificate'] = '/etc/ssl/org.crt'
nginx['ssl_certificate_key'] = '/etc/ssl/org.key'
但是,当我尝试以 https://myserver.com:2440 连接到我的 gitlab 安装时,它会返回 server refused to connect error。如果我使用http 进行配置,它可以工作。
我想知道在此处启用 SSH 是否需要做其他任何事情。我的主网站使用相同的 SSL 证书在 apache Web 服务器上运行,但端口完全不同(8080)。所以,我想我应该能够使用这些证书。
【问题讨论】: