GitLab自托管SSL问题-域验证失败 [英] GitLab self host SSL issues - validation failed for domain

查看:100
本文介绍了GitLab自托管SSL问题-域验证失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am attempting to setup gitlab self host, which has been relatively easy, but have started to stumble at the let's encrypt setup part of the integration.

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在域中,却自己看不到该问题.非常感谢您的帮助!

I've gone through permissions, several other tutorials and guides online but am not able to fix this so far. I think it may be to do with the domain itself (which would make sense from the issue I'm seeing...). I've run who.is over the domain and can't see the issue myself. Help greatly appreciated!

推荐答案

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

Two things you should check. In your /etc/gitlab/gitlab.rb file, make sure you have the following in addition to your Let's Encrypt values:

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

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

As well, make sure that your firewall doesn't block 80 (HTTP) or 443 (HTTPS). If it does, Let's Encrypt can't verify that it's accessible.

修改后,您必须重新启动Gitlab:

Edit : After modifications, you have to restart Gitlab:

gitlab-ctl restart

这篇关于GitLab自托管SSL问题-域验证失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆