summaryrefslogtreecommitdiffstats
path: root/custom
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-06-24 05:56:29 +0200
committerGitHub <noreply@github.com>2023-06-24 05:56:29 +0200
commit9c62ca568962bdefb12aaee21c479025b0dea515 (patch)
tree949828e2ad653547561004378581e5ac0a1f9b8d /custom
parent[skip ci] Updated translations via Crowdin (diff)
downloadforgejo-9c62ca568962bdefb12aaee21c479025b0dea515.tar.xz
forgejo-9c62ca568962bdefb12aaee21c479025b0dea515.zip
Fix default value for LocalURL (#25426)
Fix #23769
Diffstat (limited to 'custom')
-rw-r--r--custom/conf/app.example.ini11
1 files changed, 7 insertions, 4 deletions
diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini
index 760f0440cc..57adce83c0 100644
--- a/custom/conf/app.example.ini
+++ b/custom/conf/app.example.ini
@@ -119,10 +119,13 @@ RUN_USER = ; git
;; Permission for unix socket
;UNIX_SOCKET_PERMISSION = 666
;;
-;; 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 'unix'.
+;; 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. 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_ROOT_URL = %(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/
;;
;; When making local connections pass the PROXY protocol header.