我的公司有一个bitnami安装,我们自己主机。虽然我管理的gitlab安装,我不是一个专家在它的任何延伸。几个月前,我将一个项目配置为使用gitlab运行程序,以便在提交项目时执行单元测试。
今天,当我推动提交时,gitlab运行程序试图使用ssl从ip地址中提取。我如何告诉它使用域名来提取提交?
我希望它使用https://gitlab.ourcompany.com,但它使用的是https://10.1.3.3
注意:不是我们真正的ip地址或主机名:
Getting source from Git repository
Fetching changes with git depth set to 50...
Reinitialized existing Git repository in /builds/full-stack/apigw/.git/
fatal: unable to access 'https://10.1.2.3/full-stack/apigw.git/': SSL: no alternative certificate subject name matches target host name '10.1.2.3'发布于 2022-04-14 23:36:55
我在发完这个问题后找到了答案。把这两个都留给别人。
事实证明,我们的gitlab.rb配置文件的external_url设置不正确。以下是改变这一状况的步骤:
/etc/gitlab/gitlab.rb
# other entries omitted for brevity
# was external_url 'https://10.1.2.3'
external_url 'https://gitlab.ourcompany.com'然后重新加载您的设置:sudo gitlab-ctl reconfigure
https://stackoverflow.com/questions/71878552
复制相似问题