aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/doc
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-06-24 11:56:29 +0800
committerGitHub <noreply@github.com>2023-06-24 11:56:29 +0800
commit9c62ca568962bdefb12aaee21c479025b0dea515 (patch)
tree949828e2ad653547561004378581e5ac0a1f9b8d /docs/content/doc
parent326df0f6ed99c675ede70f7f436cefc50720f19f (diff)
downloadgitea-9c62ca568962bdefb12aaee21c479025b0dea515.tar.gz
gitea-9c62ca568962bdefb12aaee21c479025b0dea515.zip
Fix default value for LocalURL (#25426)
Fix #23769
Diffstat (limited to 'docs/content/doc')
-rw-r--r--docs/content/doc/administration/config-cheat-sheet.en-us.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/content/doc/administration/config-cheat-sheet.en-us.md b/docs/content/doc/administration/config-cheat-sheet.en-us.md
index 9d8f561c95..2b95110349 100644
--- a/docs/content/doc/administration/config-cheat-sheet.en-us.md
+++ b/docs/content/doc/administration/config-cheat-sheet.en-us.md
@@ -314,8 +314,11 @@ The following configuration set `Content-Type: application/vnd.android.package-a
- `LOCAL_ROOT_URL`: **%(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/**: Local
(DMZ) URL for Gitea workers (such as SSH update) accessing web service. In
most cases you do not need to change the default value. Alter it only if
- your SSH server node is not the same as HTTP node. Do not set this variable
- if `PROTOCOL` is set to `http+unix`.
+ your SSH server node is not the same as HTTP node. For different protocol, the default
+ values are different. If `PROTOCOL` is `http+unix`, the default value is `http://unix/`.
+ If `PROTOCOL` is `fcgi` or `fcgi+unix`, the default value is `%(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/`.
+ If listen on `0.0.0.0`, the default value is `%(PROTOCOL)s://localhost:%(HTTP_PORT)s/`, Otherwise the default
+ value is `%(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/`.
- `LOCAL_USE_PROXY_PROTOCOL`: **%(USE_PROXY_PROTOCOL)s**: When making local connections pass the PROXY protocol header.
This should be set to false if the local connection will go through the proxy.
- `PER_WRITE_TIMEOUT`: **30s**: Timeout for any write to the connection. (Set to -1 to