Allow Pages root domain to be used as custom domain
What does this MR do and why?
This MR allows the use of the Pages root domain (gitlab.io
in the case of gitlab.com
) as a custom Pages domain.
It also improves the error message and the documentation at https://docs.gitlab.com/ee/administration/pages/#dns-configuration-for-custom-domains.
It is a follow-up on !77247 (merged) and closes #350627 (closed).
Screenshots or screen recordings
old | new |
---|---|
![]() |
![]() |
How to set up and validate locally
Assuming 127.0.0.1.nip.io
as Pages root domain.
- Ensure that GitLab Pages and custom domains is enabled for the test instance. (Set
pages.external_http
to127.0.0.1.nip.io
ingitlab/config/gitlab.yml
when using GDK.) - Go to any project, then to
Settings
->Pages
->New Domain
(e.g., http://127.0.0.1:3000/root/test/pages/domains). - Configure the Pages root domain (
127.0.0.1.nip.io
); verify that no error occurs (in contrast to before this MR).
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.