From ad95b7776cc95b35b2270d8e5187705998506530 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 8 Oct 2026 13:28:26 +0000 Subject: [PATCH] docs: update GO_GET_CLONE_URL_PROTOCOL default (#580) Copy the new `app.example.ini` wording from https://github.com/go-gitea/gitea/pull/39674, backported in https://github.com/go-gitea/gitea/pull/39676. `GO_GET_CLONE_URL_PROTOCOL` now defaults to ssh when `DISABLE_HTTP_GIT` is enabled. Reviewed-on: https://gitea.com/gitea/docs/pulls/580 Reviewed-by: wxiaoguang <29147+wxiaoguang@noreply.gitea.com> Co-authored-by: silverwind --- docs/administration/config-cheat-sheet.md | 4 ++-- .../version-28/administration/config-cheat-sheet.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/administration/config-cheat-sheet.md b/docs/administration/config-cheat-sheet.md index 91aba3f4..473bc8f3 100644 --- a/docs/administration/config-cheat-sheet.md +++ b/docs/administration/config-cheat-sheet.md @@ -130,8 +130,8 @@ In addition, there is _`StaticRootPath`_ which can be set as a built-in at build HTTP protocol. - `USE_COMPAT_SSH_URI`: **false**: Force ssh:// clone url instead of scp-style uri when default SSH port is used. -- `GO_GET_CLONE_URL_PROTOCOL`: **https**: Value for the "go get" request returns the repository url as https or ssh - default is https. +- `GO_GET_CLONE_URL_PROTOCOL`: **_empty_**: Scheme of the returned URL for the "go get" response. + Default is "https" if DISABLE_HTTP_GIT=false or SSH is disabled, otherwise "ssh". - `ACCESS_CONTROL_ALLOW_ORIGIN`: **_empty_**: Value for Access-Control-Allow-Origin header, default is not to present. diff --git a/versioned_docs/version-28/administration/config-cheat-sheet.md b/versioned_docs/version-28/administration/config-cheat-sheet.md index 2073cca3..7ed14000 100644 --- a/versioned_docs/version-28/administration/config-cheat-sheet.md +++ b/versioned_docs/version-28/administration/config-cheat-sheet.md @@ -130,8 +130,8 @@ In addition, there is _`StaticRootPath`_ which can be set as a built-in at build HTTP protocol. - `USE_COMPAT_SSH_URI`: **false**: Force ssh:// clone url instead of scp-style uri when default SSH port is used. -- `GO_GET_CLONE_URL_PROTOCOL`: **https**: Value for the "go get" request returns the repository url as https or ssh - default is https. +- `GO_GET_CLONE_URL_PROTOCOL`: **_empty_**: Scheme of the returned URL for the "go get" response. + Default is "https" if DISABLE_HTTP_GIT=false or SSH is disabled, otherwise "ssh". - `ACCESS_CONTROL_ALLOW_ORIGIN`: **_empty_**: Value for Access-Control-Allow-Origin header, default is not to present.