【问题标题】:GitLab self host SSL issues - validation failed for domainGitLab 自托管 SSL 问题 - 域验证失败
【发布时间】:2019-01-25 20:06:39
【问题描述】:

我正在尝试设置 gitlab 自我主机,这相对容易,但在集成的 let's encrypt setup 部分开始绊倒。

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,但我自己看不到问题。非常感谢您的帮助!

【问题讨论】:

    标签: gitlab lets-encrypt


    【解决方案1】:

    您应该检查两件事。在您的 /etc/gitlab/gitlab.rb 文件中,确保除了 Let's Encrypt 值之外还有以下内容:

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

    此外,请确保您的防火墙不会阻止 80 (HTTP) 或 443 (HTTPS)。如果是,Let's Encrypt 无法验证它是否可访问。

    编辑:修改后需要重启Gitlab:

    gitlab-ctl restart
    

    【讨论】:

    • 修改后别忘了运行gitlab-ctl restart
    猜你喜欢
    • 2019-12-09
    • 1970-01-01
    • 2018-07-16
    • 2017-04-18
    • 1970-01-01
    • 2014-04-19
    • 2020-07-26
    • 2019-01-26
    • 1970-01-01
    相关资源
    最近更新 更多