美文网首页
GitLab项目域名或IP设置及修改

GitLab项目域名或IP设置及修改

作者: sunsky2017 | 来源:发表于2019-12-06 15:53 被阅读0次

    1、 编辑gitlab.yml配置文件

    vim /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml
    

    找到host,并修改为你要配置的域名或IP

     ## GitLab settings
      gitlab:
        ## Web server settings (note: host is the FQDN, do not include http://)
        host: 192.168.0.201
        port: 80
        https: false
    

    2、 编辑gitlab.rb文件

    vim /etc/gitlab/gitlab.rb
    

    找到external_url,修改成对应的域名或IP

    ## Url on which GitLab will be reachable.
    ## For more details on configuring external_url see:
    ## https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/configuration.md#configuring-the-external-url-for-gitlab
    external_url 'http://192.168.0.201'
    

    3、 重启GitLab服务

    gitlab-ctl restart
    

    相关文章

      网友评论

          本文标题:GitLab项目域名或IP设置及修改

          本文链接:https://www.haomeiwen.com/subject/szdegctx.html