gitlab - IP上的Omnibus GitLab,不带域名,并且具有自定义的relative_url_root

标签 gitlab

我已经知道您可以使用omnibus软件包下载并安装gitlab(简便方法)。但是我被IP/域的配置所困扰。因为我没有域,所以我想像这样使用我的静态服务器IP:

Sudo gitlab-ctl重新配置->“133.713.37.01/gitlab”

甚至可以在没有域的情况下设置gitlab还是我做错了什么?

我很感谢你的帮助

最佳答案

直接使用IP似乎可行,因为大多数网络实用程序都接受:

不起作用的是将external_url "http://127.0.0.1"根路径添加到/etc/gitlab/gitlab.rb:sudo gitlab-ctl reconfigure说:

RuntimeError
------------
Unsupported external URL path: /gitlab

从相对URL根提供服务似乎根本不在Omnibus GitLab上实现:https://gitlab.com/gitlab-org/omnibus-gitlab/blob/ed51ec97401bba955c93e61f8ef860520f745837/files/gitlab-cookbooks/gitlab/templates/default/gitlab.yml.erb#L24(因为未在其中插入模板变量)

您可以通过按照/gitlab的注释中的说明手动修改所有必需的配置文件来解决此问题,但这确实是很多手动工作,并且如果重新配置,这些配置将被覆盖,因此我建议您在以下位置请求该功能: http://feedback.gitlab.com/forums/176466-general并发送实现该请求的拉取请求。

关于gitlab - IP上的Omnibus GitLab,不带域名,并且具有自定义的relative_url_root,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26616833/

相关文章:

git - ssh:连接到主机 gitlab.com 端口 22:网络无法访问

phpstorm - 在gitlab上删除后如何删除phpstorm上的远程分支?

git - 将 git-lfs 文件从 bitbucket 移动到 GitLab

Git 推送 : Error: unpack failed: index-pack abnormal exit

gitlab - 使用Gitlab API在项目上创建变量

node.js - GitLab CI 卡在正在运行的 NodeJS 服务器上

git pull 返回,致命 : protocol error: bad line length character: No s

gitlab - 如何在一台机器上使用 GitLab 和 Gitlab-Mattermost?

docker - Gitlab-runner docker 执行器

gitlab - 如何回滚到以前版本的 Gitlab