gitlab安装后如何修改domian 或ip

gitlab 安装时设置了domian 为192.168.2.129
完成后,我的虚拟机ip变了。
现在怎么才能修改安装时的 domian
现在gitlab 一直是git@192.168.2.129:master/match.git
请指点怎么修改这个仓库的ip

阅读 37.2k
3 个回答

gitlab/config/gitlab.yml

GitLab settings

gitlab:
## Web server settings
host: 192.168.2.129 #ip or domain
port: 80
https: false

Configuring the external URL for GitLab
In order for GitLab to display correct repository clone links to your users it needs to know the URL under which it is reached by your users, e.g. http://gitlab.example.com. Add or edit the following line in /etc/gitlab/gitlab.rb:

external_url "http://gitlab.example.com"

Run sudo gitlab-ctl reconfigure for the change to take effect.

/home/git/gitlab/config/gitlab.yml
修改host的值

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进