GitLab self host SSL issues - validation failed for domain

℡╲_俬逩灬. 提交于 2019-12-10 17:35:41

问题


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

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!


回答1:


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

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.

Edit : After modifications, you have to restart Gitlab:

gitlab-ctl restart


来源:https://stackoverflow.com/questions/51918116/gitlab-self-host-ssl-issues-validation-failed-for-domain

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!