gitlab安装后如何修改domian 或ip

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

阅读 27.9k
评论
    3 个回答
    • 119

    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.

        • 1.9k

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

          撰写回答

          登录后参与交流、获取后续更新提醒

          相似问题
          推荐文章