【问题标题】:configuring gitlab with SSH support使用 SSH 支持配置 gitlab
【发布时间】: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)。所以,我想我应该能够使用这些证书。

【问题讨论】:

    标签: ssl nginx gitlab


    【解决方案1】:

    事实证明这是因为密码短语,我不得不使用

    删除它
    openssl rsa -in www.key -out new.key
    

    并在 nginx 中使用new.key

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-11-19
      • 1970-01-01
      • 2018-07-17
      • 2019-11-23
      • 1970-01-01
      • 2018-05-20
      • 2020-03-01
      相关资源
      最近更新 更多