Skip to content

Commit 493f304

Browse files
wxiaoguangdenyskon
andauthored
Update custom/conf/app.example.ini
Co-authored-by: Denys Konovalov <[email protected]>
1 parent e804953 commit 493f304

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom/conf/app.example.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ RUN_USER = ; git
6969
;; Most users should set it to the real website URL of their Gitea instance when there is a reverse proxy.
7070
;ROOT_URL =
7171
;;
72-
;; Controls how to generate the public URL.
72+
;; Controls how to detect the public URL.
7373
;; Although it defaults to "legacy" (to avoid breaking existing users), most instances should use the "auto" behavior,
7474
;; especially when the Gitea instance needs to be accessed in a container network.
75-
;; * legacy: generate the public URL by "Host" header if "X-Forwarded-Proto" header exists, otherwise use "ROOT_URL".
75+
;; * legacy: detect the public URL from "Host" header if "X-Forwarded-Proto" header exists, otherwise use "ROOT_URL".
7676
;; * auto: always use "Host" header, and also use "X-Forwarded-Proto" header if it exists. If no "Host" header, use "ROOT_URL".
7777
;PUBLIC_URL_DETECTION = legacy
7878
;;

0 commit comments

Comments
 (0)