搭建使用了两年的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

相关文章:

  • 2022-12-23
  • 2021-05-29
  • 2021-11-01
  • 2021-05-11
  • 2021-09-30
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-13
  • 2022-12-23
  • 2021-12-06
  • 2021-09-18
  • 2022-12-23
相关资源
相似解决方案