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

23 lines
882 B
Markdown
Raw Normal View History

2019-10-12 21:52:04 +05:30
---
type: reference
---
# Rate limits on raw endpoints **(CORE ONLY)**
2020-03-13 15:44:24 +05:30
> [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/30829) in GitLab 12.2.
2019-10-12 21:52:04 +05:30
2019-12-04 20:38:33 +05:30
This setting allows you to rate limit the requests to raw endpoints, defaults to `300` requests per minute.
2019-12-21 20:55:43 +05:30
It can be modified in **Admin Area > Settings > Network > Performance Optimization**.
2019-10-12 21:52:04 +05:30
2019-12-04 20:38:33 +05:30
For example, requests over `300` per minute to `https://gitlab.com/gitlab-org/gitlab-foss/raw/master/app/controllers/application_controller.rb` will be blocked. Access to the raw file will be 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:
- Applied independently per project, per commit and per file path.
- 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`.