gitlab访问限制问题------Forbidden

解决方案:

cd /etc/gitlab


vim /gitlab.rb


gitlab_rails['rack_attack_git_basic_auth'] = {
   'enabled' => true,
   'ip_whitelist' => ["127.0.0.1","IP地址"],
   'maxretry' => 300,
   'findtime' => 5,
   'bantime' => 60
 }

保存gitlab配置:  gitlab-ctl reconfigure

重启-gitlab:       gitlab-ctl restart          

posted @ 2018-06-04 16:09  WrYcF  阅读(682)  评论(0编辑  收藏  举报
Live2D