升级 GitLab 后,自定义端口出现问题 运行。
After upgrade GitLab, has problems with custom port on which it is running.
在 GitLab 自动升级到 GitLab Community Edition 8.10.0 后,它停止将一些内部 URL(如注销或创建里程碑)重定向到自定义端口 9000。尽管我们仍然在 gitlab.rb
像这样:
external_url 'http://domain.com:9000'
有人有什么想法吗?
这是版本 8.10.0 中引入的错误。您可以看到完整的问题 here 但解决方案是升级到版本 8.10.1
如果您无法升级,解决方法是将此行添加到您的 /etc/gitlab/gitlab.rb
文件中:
nginx['proxy_set_headers'] = { "Host" => "<YOUR HOST>:<YOUR PORT>" }
然后通过 运行:
重新配置 GitLab
sudo gitlab-ctl reconfigure
在 GitLab 自动升级到 GitLab Community Edition 8.10.0 后,它停止将一些内部 URL(如注销或创建里程碑)重定向到自定义端口 9000。尽管我们仍然在 gitlab.rb
像这样:
external_url 'http://domain.com:9000'
有人有什么想法吗?
这是版本 8.10.0 中引入的错误。您可以看到完整的问题 here 但解决方案是升级到版本 8.10.1
如果您无法升级,解决方法是将此行添加到您的 /etc/gitlab/gitlab.rb
文件中:
nginx['proxy_set_headers'] = { "Host" => "<YOUR HOST>:<YOUR PORT>" }
然后通过 运行:
重新配置 GitLabsudo gitlab-ctl reconfigure