GitLab

来自Ubuntu中文
跳到导航跳到搜索

GitLab是一套开源的GIT管理系统,安装指南:

https://about.gitlab.com/downloads/#ubuntu1404

启动服务:

sudo gitlab-ctl start

参数调整:

sudo vim /etc/gitlab/gitlab.rb 
external_url 'http://git'

gitlab_rails['time_zone'] = 'Asia/Shanghai'

gitlab_rails['rack_attack_git_basic_auth'] = {
   'enabled' => false,
   'ip_whitelist' => ["127.0.0.1"],
   'maxretry' => 3000,
   'findtime' => 5,
   'bantime' => 1
}

unicorn['worker_timeout'] = 300

nginx['enable'] = true
nginx['client_max_body_size'] = '250m'

sudo gitlab-ctl reconfigure


客户端如果无法上传,试试:

git config http.postBuffer 524288000