在自定义的relative_url_root (http://mydomain/gitlab)中,Omnibus Gitlab版本7.4.3

时间:2022-01-05 02:57:17

I have successfully installed older versions of gitlab and hosted them at a location like this:

我已经成功安装了旧版本的gitlab,并在这样的地方托管它们:

mydomain/gitlab

with the new version of gitlab doing all of the config though the gitlab-ctl and via me editing the /etc/gitlab/gitlab.rb I'm not sure how to achieve this set-up.

有了新版本的gitlab,做了所有的配置,尽管gitlab-ctl和通过我编辑/etc/ gitlab/gitlab。rb我不知道如何实现这个设置。

I find lots of documentation on stackexchange for older versions of gitlab that did not use gitlab-ctl for configuration but not for the new version. Presently I have gitlab installed and running fine at:

我在stackexchange上找到了很多关于旧版本的gitlab的文档,这些文档没有使用gitlab-ctl进行配置,但没有使用新版本。目前我已安装并运行良好:

mydomain

I want to move it to:

我想把它移动到:

mydomain/gitlab

Anybody know how to do this for version 7.4.3?

有人知道怎么做7.4.3吗?

Thanks :)

谢谢:)

2 个解决方案

#1


1  

Serving from a relative URL root seems to be simply not implemented on Omnibus GitLab: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/ed51ec97401bba955c93e61f8ef860520f745837/files/gitlab-cookbooks/gitlab/templates/default/gitlab.yml.erb#L24 (since no template variable is inserted there)

从一个相对的URL根中服务似乎并不是在Omnibus GitLab上实现的:https://gitlab.com/gitlab.com/omnibus- gitlab-org/omnibus- gitlab-gitlab-gitlab-test-_

You could work around that by modifying all the required configuration files manually as explained in the comment on gitlab.yml, but that would really be a lot of manual work and those configs would get overwritten if you reconfigure, so I recommend you request the feature at: http://feedback.gitlab.com/forums/176466-general and send a pull request implementing that.

您可以通过手工修改所有需要的配置文件来解决这个问题,正如在gitlab的注释中解释的那样。yml,但这确实需要大量的手工工作,如果您重新配置,这些配置将会被覆盖,所以我建议您请求这个特性:http://feedback.gitlab.com/forums/176466-general,并发送一个pull请求来实现这个功能。

This problem was also raised at: Omnibus GitLab on IP without a domain-name and with custom relative_url_root

这个问题也被提出了:在IP上没有域名和自定义的relative_url_root的Omnibus GitLab。

#2


0  

I ran across this same issue this week and set out to find a solution. I'm not all that familiar with RoR so I ended up creating a Bash script to automate the process instead.

这周我遇到了同样的问题,开始寻找解决方案。我并不完全熟悉RoR,因此我最终创建了一个Bash脚本,以使过程自动化。

Now it'd be a lot nicer if we could just automate all this through /etc/gitlab/gitlab.rb and hopefully somebody sets that up at some point (maybe someone has that I just can't find?), but in the meantime feel free to use this script as needed. Run as root on a system with a GitLab Omnibus-package installation. Tested on GitLab CE 7.9.0 with Bash 4.2.

如果我们能通过/ etc/gitlab/gitlab来自动化所有这些,那就更好了。rb和希望有人在某一时刻设置(也许有人有我找不到的东西?),但同时在需要的时候可以使用这个脚本。使用GitLab Omnibus-package安装在系统上作为根运行。在GitLab CE 7.9.0上使用Bash 4.2进行测试。

GitLab Relative URL Setter

GitLab相对URL Setter

#1


1  

Serving from a relative URL root seems to be simply not implemented on Omnibus GitLab: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/ed51ec97401bba955c93e61f8ef860520f745837/files/gitlab-cookbooks/gitlab/templates/default/gitlab.yml.erb#L24 (since no template variable is inserted there)

从一个相对的URL根中服务似乎并不是在Omnibus GitLab上实现的:https://gitlab.com/gitlab.com/omnibus- gitlab-org/omnibus- gitlab-gitlab-gitlab-test-_

You could work around that by modifying all the required configuration files manually as explained in the comment on gitlab.yml, but that would really be a lot of manual work and those configs would get overwritten if you reconfigure, so I recommend you request the feature at: http://feedback.gitlab.com/forums/176466-general and send a pull request implementing that.

您可以通过手工修改所有需要的配置文件来解决这个问题,正如在gitlab的注释中解释的那样。yml,但这确实需要大量的手工工作,如果您重新配置,这些配置将会被覆盖,所以我建议您请求这个特性:http://feedback.gitlab.com/forums/176466-general,并发送一个pull请求来实现这个功能。

This problem was also raised at: Omnibus GitLab on IP without a domain-name and with custom relative_url_root

这个问题也被提出了:在IP上没有域名和自定义的relative_url_root的Omnibus GitLab。

#2


0  

I ran across this same issue this week and set out to find a solution. I'm not all that familiar with RoR so I ended up creating a Bash script to automate the process instead.

这周我遇到了同样的问题,开始寻找解决方案。我并不完全熟悉RoR,因此我最终创建了一个Bash脚本,以使过程自动化。

Now it'd be a lot nicer if we could just automate all this through /etc/gitlab/gitlab.rb and hopefully somebody sets that up at some point (maybe someone has that I just can't find?), but in the meantime feel free to use this script as needed. Run as root on a system with a GitLab Omnibus-package installation. Tested on GitLab CE 7.9.0 with Bash 4.2.

如果我们能通过/ etc/gitlab/gitlab来自动化所有这些,那就更好了。rb和希望有人在某一时刻设置(也许有人有我找不到的东西?),但同时在需要的时候可以使用这个脚本。使用GitLab Omnibus-package安装在系统上作为根运行。在GitLab CE 7.9.0上使用Bash 4.2进行测试。

GitLab Relative URL Setter

GitLab相对URL Setter