【发布时间】:2016-10-17 16:57:19
【问题描述】:
我启动并运行了 GitLab,但目前它不使用 SSL。我通常使用 Let's Encrypt Plesk Extension 来获得免费的 SSL 证书。 这是我的设置的样子:
- Plesk v12.5.30_build1205150826.19 os_Ubuntu 14.04
- GitLab 8.8.5
- 让我们加密 Plesk 扩展 v1.6 第 1 版
- Plesk 子域:git.my-domain.com
git.my-domain.com 的 Plesk Apache 和 nginx 设置:
Additional directives for HTTP :
<Location />
ProxyPass http://IP-of-my-domain:9999/
ProxyPassReverse http://IP-of-my-domain:9999/
</Location>
Additional directives for HTTPS :
<Location />
ProxyPass https://IP-of-my-domain:9998/
ProxyPassReverse https://IP-of-my-domain:9998/
</Location>
在我的 gitlab.rb 文件中:
external_url "http://IP-of-my-domain:9999/"
我还找到了How do I use let’s encrypt with gitlab? 并尝试调整答案,但不知道该输入什么:
nginx['custom_gitlab_server_config']="?"
nginx['custom_gitlab_mattermost_server_config']="?"
Http 连接工作正常(子域或 IP:端口,两者都工作)。一旦我更改为 Https,它就没有,我得到以下信息(如果我将 external_url 更改为端口 9998):
服务不可用
由于维护停机或容量问题,服务器暂时无法满足您的请求。请稍后再试。
此外,在尝试使用 ErrorDocument 处理请求时遇到 503 Service Unavailable 错误。
在没有 ProxyPass 条目的情况下,在 ProxyPass 和 https 工作之前安装证书没有任何问题(即证书存在并且有效)。
如果有人通过 Let's Encrypt 启动并运行 Plesk 和 GitLab,如果您能分享您的配置,我将不胜感激。
【问题讨论】:
标签: ssl-certificate subdomain gitlab plesk lets-encrypt