使用 SSH 支持配置 gitlab
configuring gitlab with SSH support
我正在尝试在我的服务器上设置支持 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。我的主要网站 运行 在 apache 网络服务器上使用相同的 SSL 证书,但在完全不同的端口 (8080) 上。所以,我想我应该可以使用这些证书。
事实证明这是因为密码短语,我不得不使用
删除它
openssl rsa -in www.key -out new.key
并在nginx中使用new.key
。
我正在尝试在我的服务器上设置支持 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。我的主要网站 运行 在 apache 网络服务器上使用相同的 SSL 证书,但在完全不同的端口 (8080) 上。所以,我想我应该可以使用这些证书。
事实证明这是因为密码短语,我不得不使用
删除它openssl rsa -in www.key -out new.key
并在nginx中使用new.key
。