GitLab自托管SSL问题-域验证失败

时间:2018-08-19 13:26:41

标签: gitlab lets-encrypt

我正在尝试设置gitlab自主机,这相对简单,但是开始迷惑于让我们加密集成的设置部分。

There was an error running gitlab-ctl reconfigure:

letsencrypt_certificate[gitlab.cloudcreations.co.uk] (letsencrypt::http_authorization line 3) had an error: RuntimeError: acme_certificate[staging] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/letsencrypt/resources/certificate.rb line 20) had an error: RuntimeError: [gitlab.cloudcreations.co.uk] Validation failed for domain gitlab.cloudcreations.co.uk

我已经在线查看了权限以及其他一些教程和指南,但是到目前为止还无法解决。我认为这可能与域本身有关(从我所看到的问题中可以理解……)。我已经运行了who.is在域中,但自己看不到该问题。非常感谢您的帮助!

1 个答案:

答案 0 :(得分:2)

您应该检查两件事。在/etc/gitlab/gitlab.rb文件中,确保除了“让我们加密”值外,还具有以下内容:

nginx['redirect_http_to_https_port'] = 80
nginx['redirect_http_to_https'] = true

同样,请确保您的防火墙没有阻止80(HTTP)或443(HTTPS)。如果是这样,则“加密”将无法验证它是否可访问。

相关问题