Docs: Redirect from GitLab pages URL to custom domain when one exists
All threads resolved!
All threads resolved!
Compare changes
Files
2- Naman Jagdish Gala authored
+ 9
− 5
@@ -63,7 +63,7 @@ response attributes:
@@ -63,7 +63,7 @@ response attributes:
| `is_unique_domain_enabled` | boolean | If [unique domain](../user/project/pages/introduction.md) is enabled. |
| ----------------------------------------- | ---------- |-------------------------------------------------------------------------------------------------------------------------------|
@@ -124,7 +124,7 @@ Supported attributes:
@@ -124,7 +124,7 @@ Supported attributes:
| `id` | integer/string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-paths) |
| `pages_primary_domain` | string | No | Set the primary domain from the existing assigned domains to which all Pages requests will be redirected. |
@@ -135,7 +135,7 @@ response attributes:
@@ -135,7 +135,7 @@ response attributes:
| `is_unique_domain_enabled` | boolean | If [unique domain](../user/project/pages/introduction.md) is enabled. |
| ----------------------------------------- | ---------- |-------------------------------------------------------------------------------------------------------------------------------|
@@ -147,8 +147,12 @@ response attributes:
@@ -147,8 +147,12 @@ response attributes:
curl --request PATCH --header "PRIVATE-TOKEN: <your_access_token>" --url "https://gitlab.example.com/api/v4/projects/:id/pages" \
--form 'pages_unique_domain_enabled=true' --form 'pages_https_only=true' --form 'pages_primary_domain=https://custom.example.com'