Pages domain rate limits
- Tier: Free, Premium, Ultimate
- Offering: GitLab.com, GitLab Self-Managed
The availability of this feature is controlled by a feature flag. For more information, see the history.
You can limit how often each user can add and verify GitLab Pages custom domains. These limits apply to the UI and to the Pages domains API. The limits apply to each user, not to each IP address. Project and group domains count toward the same limits.
On GitLab.com, you cannot change these limits. For the values that apply, see GitLab.com rate limits.
The following limits are available:
| Limit | Default | Applies to |
|---|---|---|
| Domain creation | 50 domains each day | Adding a custom domain in the UI and with POST /projects/:id/pages/domains, and adding a group domain. Attempts that fail validation do not count toward the limit. |
| Domain verification | 5 requests every minute | Verifying a custom domain in the UI and with PUT /projects/:id/pages/domains/:domain/verify, and verifying a group domain. |
When the pages_domain_rate_limits flag is enabled, requests over a limit return
429 Too Many Requests in the API and an error message in the UI.
The API response includes a Retry-After header set to the full period of the limit.
The period is one day for domain creation and one minute for domain verification.
These requests are also logged to the auth.log file.
While the flag is disabled, requests over a limit are logged but not blocked.
Change the Pages domain rate limits
Prerequisites:
- Administrator access.
To change the Pages domain rate limits:
- In the upper-right corner, select Admin.
- In the left sidebar, select Settings > Network.
- Expand Pages domain rate limits.
- Change the value of either limit. To turn off a limit, set it to
0. - Select Save changes.
You can also set these limits with the application settings API,
using pages_domain_create_limit and pages_domain_verify_limit.