1. gitlab-shell的config.yml文件要从这里https://github.com/gitlabhq/gitlab-shell/blob/master/config.yml.example复制,
但是,有两个地方要修改,否则无法clone代码
用https而不是http,如下
gitlab_url: "https://localhost/"
自我认证用true而不是false
self_signed_cert: true
2. 在/home/git/gitlab目录下,用下面的命令复制rack_attach.rb配置文件
sudo -u git -H cp config/initializers/rack_attack.rb.example config/initializers/rack_attack.rb
作者:csfreebird