vim /opt/gitlab/embedded/cookbooks/gitlab/templates/default/gitlab.yml.erb
修改gitlab.yml.erb文件的gitlab > host和port
- ## GitLab settings
- gitlab:
- ## Web server settings (note: host is the FQDN, do not include http://)
- ## host: <%= @gitlab_host %>
- host: 'git.test_domain.com'
- ## port: <%= @gitlab_port %>
- port: '80'
复制代码
然后 sudo gitlab-ctl reconfigure
加载设置文件命令执行两三次就ok了 |