GitLab项目地址修改域名配置
gitlab搭建完之后,发现项目中的不是配置的域名,是localhost或主机名,这时候需要配置一下
修改gitlab.yml文件,在如下位置中:
[root@localhost]# cd /opt/gitlab/embedded/service/gitlab-rails/config
[root@localhost]# vi gitlab.yml
修改gitlab下host值为实际的域名或服务器IP地址即可,保存退出
gitlab:
## Web server settings (note: host is the FQDN, do not include http://)
host: 此处修改成自己的域名
port: 80
https: false
重启GitLab
gitlab-ctl restart
未经允许不得转载:高腾蛟 » GitLab项目地址修改域名配置
评论前必须登录!
登陆 注册