You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
;; The protocol the server listens on. One of 'http', 'https', 'http+unix', 'fcgi' or 'fcgi+unix'. Defaults to 'http'
63
-
;; Note: Value must be lowercase.
62
+
;; The protocol the server listens on. One of "http", "https", "http+unix", "fcgi" or "fcgi+unix".
64
63
;PROTOCOL = http
65
64
;;
66
-
;; Expect PROXY protocol headers on connections
67
-
;USE_PROXY_PROTOCOL = false
68
-
;;
69
-
;; Use PROXY protocol in TLS Bridging mode
70
-
;PROXY_PROTOCOL_TLS_BRIDGING = false
71
-
;;
72
-
; Timeout to wait for PROXY protocol header (set to 0 to have no timeout)
73
-
;PROXY_PROTOCOL_HEADER_TIMEOUT=5s
74
-
;;
75
-
; Accept PROXY protocol headers with UNKNOWN type
76
-
;PROXY_PROTOCOL_ACCEPT_UNKNOWN=false
77
-
;;
78
-
;; Set the domain for the server
65
+
;; Set the domain for the server.
79
66
;DOMAIN = localhost
80
67
;;
81
-
;; The AppURL used by Gitea to generate absolute links, defaults to "{PROTOCOL}://{DOMAIN}:{HTTP_PORT}/".
82
-
;; Most users should set it to the real website URL of their Gitea instance.
68
+
;; The AppURL is used to generate public URL links, defaults to "{PROTOCOL}://{DOMAIN}:{HTTP_PORT}/".
69
+
;; Most users should set it to the real website URL of their Gitea instance when there is a reverse proxy.
83
70
;ROOT_URL =
84
71
;;
72
+
;; Controls how to detect the public URL.
73
+
;; Although it defaults to "legacy" (to avoid breaking existing users), most instances should use the "auto" behavior,
74
+
;; especially when the Gitea instance needs to be accessed in a container network.
75
+
;; * legacy: detect the public URL from "Host" header if "X-Forwarded-Proto" header exists, otherwise use "ROOT_URL".
76
+
;; * auto: always use "Host" header, and also use "X-Forwarded-Proto" header if it exists. If no "Host" header, use "ROOT_URL".
77
+
;PUBLIC_URL_DETECTION = legacy
78
+
;;
85
79
;; For development purpose only. It makes Gitea handle sub-path ("/sub-path/owner/repo/...") directly when debugging without a reverse proxy.
86
80
;; DO NOT USE IT IN PRODUCTION!!!
87
81
;USE_SUB_URL_PATH = false
@@ -90,13 +84,25 @@ RUN_USER = ; git
90
84
;STATIC_URL_PREFIX =
91
85
;;
92
86
;; The address to listen on. Either a IPv4/IPv6 address or the path to a unix socket.
93
-
;; If PROTOCOL is set to `http+unix` or `fcgi+unix`, this should be the name of the Unix socket file to use.
87
+
;; If PROTOCOL is set to "http+unix" or "fcgi+unix", this should be the name of the Unix socket file to use.
94
88
;; Relative paths will be made absolute against the _`AppWorkPath`_.
95
89
;HTTP_ADDR = 0.0.0.0
96
90
;;
97
-
;; The port to listen on. Leave empty when using a unix socket.
91
+
;; The port to listen on for "http" or "https" protocol. Leave empty when using a unix socket.
98
92
;HTTP_PORT = 3000
99
93
;;
94
+
;; Expect PROXY protocol headers on connections
95
+
;USE_PROXY_PROTOCOL = false
96
+
;;
97
+
;; Use PROXY protocol in TLS Bridging mode
98
+
;PROXY_PROTOCOL_TLS_BRIDGING = false
99
+
;;
100
+
;; Timeout to wait for PROXY protocol header (set to 0 to have no timeout)
101
+
;PROXY_PROTOCOL_HEADER_TIMEOUT = 5s
102
+
;;
103
+
;; Accept PROXY protocol headers with UNKNOWN type
104
+
;PROXY_PROTOCOL_ACCEPT_UNKNOWN = false
105
+
;;
100
106
;; If REDIRECT_OTHER_PORT is true, and PROTOCOL is set to https an http server
101
107
;; will be started on PORT_TO_REDIRECT and it will redirect plain, non-secure http requests to the main
102
108
;; ROOT_URL. Defaults are false for REDIRECT_OTHER_PORT and 80 for
@@ -1149,6 +1155,10 @@ LEVEL = Info
1149
1155
;;
1150
1156
;; Retarget child pull requests to the parent pull request branch target on merge of parent pull request. It only works on merged PRs where the head and base branch target the same repo.
1151
1157
;RETARGET_CHILDREN_ON_MERGE = true
1158
+
;;
1159
+
;; Delay mergeable check until page view or API access, for pull requests that have not been updated in the specified days when their base branches get updated.
1160
+
;; Use "-1" to always check all pull requests (old behavior). Use "0" to always delay the checks.
0 commit comments