我一直在努力解决一个我仍然无法解决的问题.非常感谢帮助!我做了什么:1)在http://docs.gitlab.com/omnibus/docker/上的服务器上的Ubuntu 16.04.1 LTS虚拟机上使用docker镜像(8.9.6-ce.0)安装Gitlab-CE README.html 2)在本地设置用户并为同一局域网中的机器推送一些项目>>所有工作正常3)向我的防火墙添加新映射以映射gitlab-machine-ip:80> example.org:8138 so我可以用http访问gitlab
我现在可以访问http://example.org:8138上的Web界面并使用它现在问题:克隆项目的URL显示不正确,因为它们错过了:8138端口(它们得到example.org部分)从--host设置传递到docker容器).如果我手动将自定义端口添加到URL,克隆工作正常
我想解决这个问题,所以尝试将gitlab.rb中的external_url设置设置为:external_url'http://example.org:8138 '并重新启动(也尝试手动调用gitlab-ctl configure)
状态是我无法访问网页界面http://example.org:8138在浏览器中获取ERR_CONNECTION_REFUSED如果我只是注释掉external_url设置,一切都恢复正常工作(除了URL中缺少的端口)
我已经阅读了一堆问题报告,但没有一个帮助解决问题:https: //gitlab.com/gitlab-org/omnibus-gitlab/issues/244 >>(我不使用外部NGINX)在我读到这篇文章后,我也尝试更新到8.11:https://gitlab.com/gitlab-org/gitlab-ce/issues/20131但它没有帮助
真的不知道这里发生了什么.输出gitlab-rake gitlab:env:info和gitlab-rake gitlab:检查如下
System information
System:
Current User: git
Using RVM: no
Ruby Version: 2.3.1p112
Gem Version: 2.6.6
Bundler Version:2.3.0
Rake Version: 10.5.0
Sidekiq Version:4.1.4
GitLab information
Version: 8.11.3
Revision: 6cd4edb
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: http://example.org:8138
HTTP Clone URL: http://example.org:8138/some-group/some-project.git
SSH Clone URL: git@example.org:some-group/some-project.git
Using LDAP: no
Using Omniauth: …Run Code Online (Sandbox Code Playgroud)