“GitLab”的版本间的差异
来自Ubuntu中文
(创建页面,内容为“GitLab是一套开源的GIT管理系统,安装指南: https://about.gitlab.com/downloads/#ubuntu1404 启动服务: sudo gitlab-ctl start”) |
小 |
||
(未显示同一用户的5个中间版本) | |||
第5行: | 第5行: | ||
启动服务: | 启动服务: | ||
sudo gitlab-ctl start | sudo gitlab-ctl start | ||
+ | |||
+ | 参数调整: | ||
+ | sudo vim /etc/gitlab/gitlab.rb | ||
+ | |||
+ | <pre> | ||
+ | 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' | ||
+ | |||
+ | </pre> | ||
+ | |||
+ | sudo gitlab-ctl reconfigure | ||
+ | |||
+ | |||
+ | 客户端如果无法上传,试试: | ||
+ | git config http.postBuffer 524288000 |
2016年12月8日 (四) 11:43的最新版本
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