XiphInfra:GitLab VM

From XiphWiki
Revision as of 05:16, 28 May 2021 by EPirat (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

IP blocks

We have a number of IP ranges blocked to prevent huge amounts of spam to the GitLab instance.

The IP blocks are configured in /etc/gitlab/gitlab.rb in the nginx['custom_gitlab_server_config'] option. Additionally there is a custom error page for when the IP is blocked, which is stored at /var/www/html/gitlab-ipblock.html.

After making changes to the gitlab.rb, you need to run sudo gitlab-ctl reconfigure for the changes to be applied to the actual config files. Under no circumstances edit the generated config files directly, always use the gitlab.rb config.

In case you made an error in the configuration and something is not working as expected or some components, for example nginx, are not starting anymore, you can use sudo gitlab-ctl tail to view logs.