搭建使用了两年的gitlab 抽风了居然forbidden
# vim /etc/gitlab/gitlab.rb
gitlab_rails['rack_attack_git_basic_auth'] = {
'enabled' => true,
'ip_whitelist' => ["10.104.10.11","127.0.0.1","119.29.222.154"],
'maxretry' => 10,
'findtime' => 60,
'bantime' => 3600
}
把这几行配置的#去掉
"10.104.10.11","127.0.0.1","119.29.222.154" (公网ip,内网ip,127)--改成你服务器的ip
root@gitlab:~# gitlab-ctl reconfigure
重读配置文件 就可以了
不过执行这个命令 要谨慎(说不定会引发啥问题)
https://www.cnblogs.com/jianxuanbing/p/7661306.html?utm_source=tuicool&utm_medium=referral