GitLab access 403 issu
The company's gitlab server has always appeared recently, which was resolved after the first restart and reappeared the next day. No problem was found when viewing nginx's access log and error log, so Baidu can solve the problem as follows:
1. Modify the policy configuration file of gitlab to add your own ip to the whitelist
Vim / etc/gitlab/gitlab.rb
Gitlab_rails ['rack_attack_git_basic_auth'] = {' enabled' = > true, 'ip_whitelist' = > ["127.0.0.1", "192.168.10.100"],' maxretry' = > 10, 'findtime' = > 60,' bantime' = > 3600}
2. Let gitlab reread the policy configuration file.
Gitlab-ctl reconfigure