debian-mirror-gitlab/doc/user/admin_area/settings/rate_limits_on_raw_endpoints.md

29 lines
1.1 KiB
Markdown
Raw Normal View History

2019-10-12 21:52:04 +05:30
---
2021-01-29 00:20:46 +05:30
stage: none
group: unassigned
2021-02-22 17:27:13 +05:30
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
2019-10-12 21:52:04 +05:30
type: reference
---
2021-03-11 19:13:27 +05:30
# Rate limits on raw endpoints **(FREE SELF)**
2019-10-12 21:52:04 +05:30
2021-12-11 22:18:48 +05:30
> [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/30635) in GitLab 12.2.
2019-10-12 21:52:04 +05:30
2021-09-04 01:27:46 +05:30
This setting defaults to `300` requests per minute, and allows you to rate limit the requests to raw endpoints:
2021-11-11 11:23:49 +05:30
1. On the top bar, select **Menu > Admin**.
1. On the left sidebar, select **Settings > Network**.
2021-09-04 01:27:46 +05:30
1. Expand **Performance optimization**.
2019-10-12 21:52:04 +05:30
2021-02-22 17:27:13 +05:30
For example, requests over `300` per minute to `https://gitlab.com/gitlab-org/gitlab-foss/raw/master/app/controllers/application_controller.rb` are blocked. Access to the raw file is released after 1 minute.
2019-10-12 21:52:04 +05:30
![Rate limits on raw endpoints](img/rate_limits_on_raw_endpoints.png)
This limit is:
2021-12-11 22:18:48 +05:30
- Applied independently per project, per file path.
2019-10-12 21:52:04 +05:30
- Not applied per IP address.
- Active by default. To disable, set the option to `0`.
Requests over the rate limit are logged into `auth.log`.