File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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; ;
You can’t perform that action at this time.
0 commit comments