首页 > 解决方案 > 如何使用 Let's Encrypt 和在 docker 容器中运行的 GitLab

问题描述

如何为在反向代理后面运行的 GitLab 实例激活 Let's Encrypt?

目前我收到以下错误:

letsencrypt_certificate[domain.com] (letsencrypt::http_authorization line 6) had an error: RuntimeError: acme_certificate[staging] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/letsencrypt/resources/certificate.rb line 41) had an error: RuntimeError: ruby_block[create certificate for domain.com] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/acme/resources/certificate.rb line 108) had an error: RuntimeError: [domain.com] Validation failed, unable to request certificate, Errors: [{url: https://acme-staging-v02.api.letsencrypt.org/acme/chall-v3/531808698/v0nVaQ, status: invalid, error: {"type"=>"urn:ietf:params:acme:error:connection", "detail"=>"Fetching (http:)//domain.com/.well-known/acme-challenge/41JcBNOd3Exv_AEcN9DzgiXUdynQWp5Ip_G8XfX9Wfo: Timeout during connect (likely firewall problem)", "status"=>400}} ]

拓扑设置如下所示:

根据官方文档,设置是在 docker 容器中完成的,但我想我在这里遗漏了一些东西。

我究竟做错了什么?

标签: dockergitlablets-encrypt

解决方案


推荐阅读