Commit 68f756be authored by Russell Dickenson's avatar Russell Dickenson

Merge branch 'eread/edit-custom-git-url' into 'master'

Edit new custom git URL text

Closes #34360

See merge request gitlab-org/gitlab!18781
parents a3b593a7 014604a3
...@@ -95,12 +95,12 @@ on the external URL of the current host. For example: ...@@ -95,12 +95,12 @@ on the external URL of the current host. For example:
![Clone panel](img/single_git_clone_panel.png) ![Clone panel](img/single_git_clone_panel.png)
You can customize the SSH remote URL to use the location-aware You can customize the:
`git.example.com`. To do so, change the SSH remote URL's host by setting
`gitlab_rails['gitlab_ssh_host']` in `gitlab.rb` of web nodes.
You can customize the HTTP remote URL as shown in - SSH remote URL to use the location-aware `git.example.com`. To do so, change the SSH remote URL's
[Custom Git clone URL for HTTP(S)](../../../user/admin_area/settings/visibility_and_access_controls.md#custom-git-clone-url-for-https). host by setting `gitlab_rails['gitlab_ssh_host']` in `gitlab.rb` of web nodes.
- HTTP remote URL as shown in
[Custom Git clone URL for HTTP(S)](../../../user/admin_area/settings/visibility_and_access_controls.md#custom-git-clone-url-for-https).
## Example Git request handling behavior ## Example Git request handling behavior
......
...@@ -137,18 +137,21 @@ from CI/CD jobs, even if _Only SSH_ was selected. ...@@ -137,18 +137,21 @@ from CI/CD jobs, even if _Only SSH_ was selected.
## Custom Git clone URL for HTTP(S) ## Custom Git clone URL for HTTP(S)
> [Introduced](https://gitlab.com/gitlab-org/gitlab/merge_requests/18422) in GitLab 12.4.
You can customize project Git clone URLs for HTTP(S). This will affect the clone You can customize project Git clone URLs for HTTP(S). This will affect the clone
panel: panel:
![Clone panel](img/clone_panel.png) ![Clone panel](img/clone_panel_v12_4.png)
For example, if:
For example, if your - Your GitLab instance is at `https://example.com`, then project clone URLs are like
GitLab instance is at `https://example.com`, then project clone URLs look like `https://example.com/foo/bar.git`.
`https://example.com/foo/bar.git`. If you'd to provide clone URLs that look like - You want clone URLs that look like `https://git.example.com/gitlab/foo/bar.git` instead,
`https://git.example.com/gitlab/foo/bar.git` instead, then you can set this you can set this setting to `https://git.example.com/gitlab/`.
setting to `https://git.example.com/gitlab/`.
![Custom Git clone URL for HTTP](img/custom_git_clone_url_for_https.png) ![Custom Git clone URL for HTTP](img/custom_git_clone_url_for_https_v12_4.png)
To specify a custom Git clone URL for HTTP(S): To specify a custom Git clone URL for HTTP(S):
...@@ -156,8 +159,8 @@ To specify a custom Git clone URL for HTTP(S): ...@@ -156,8 +159,8 @@ To specify a custom Git clone URL for HTTP(S):
1. Click on **Save changes**. 1. Click on **Save changes**.
NOTE: **Note:** NOTE: **Note:**
SSH clone URLs can be customized in `gitlab.rb` by setting SSH clone URLs can be customized in `gitlab.rb` by setting `gitlab_rails["gitlab_ssh_host"]` and
`gitlab_rails["gitlab_ssh_host"]` and other related settings. other related settings.
## RSA, DSA, ECDSA, ED25519 SSH keys ## RSA, DSA, ECDSA, ED25519 SSH keys
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment