Get the App
SLTechnology News&Howtos  ›  Servers  › 

GitLab access 403 issu

Shulou Source: shulou.com Published: 2022-06-03 09:27:29 12月06日 Update

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

Tags: File log policy configuration problem company list method server first time error two days service Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Shulou Technology macOS OPPO Reno Microsoft