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
This PR adds functionality to allow Gitea to sit behind an
HAProxy and HAProxy protocolled connections directly.
Fix#7508
Signed-off-by: Andrew Thornton <[email protected]>
@@ -262,12 +266,15 @@ The following configuration set `Content-Type: application/vnd.android.package-a
262
266
most cases you do not need to change the default value. Alter it only if
263
267
your SSH server node is not the same as HTTP node. Do not set this variable
264
268
if `PROTOCOL` is set to `http+unix`.
269
+
-`LOCAL_USE_PROXY_PROTOCOL`: **%(USE_PROXY_PROTOCOL)**: When making local connections pass the PROXY protocol header.
270
+
This should be set to false if the local connection will go through the proxy.
265
271
-`PER_WRITE_TIMEOUT`: **30s**: Timeout for any write to the connection. (Set to -1 to
266
272
disable all timeouts.)
267
273
-`PER_WRITE_PER_KB_TIMEOUT`: **10s**: Timeout per Kb written to connections.
268
274
269
275
-`DISABLE_SSH`: **false**: Disable SSH feature when it's not available.
270
276
-`START_SSH_SERVER`: **false**: When enabled, use the built-in SSH server.
277
+
-`SSH_SERVER_USE_PROXY_PROTOCOL`: **false**: Expect PROXY protocol header on connections to the built-in SSH Server.
271
278
-`BUILTIN_SSH_SERVER_USER`: **%(RUN_USER)s**: Username to use for the built-in SSH Server.
272
279
-`SSH_USER`: **%(BUILTIN_SSH_SERVER_USER)**: SSH username displayed in clone URLs. This is only for people who configure the SSH server themselves; in most cases, you want to leave this blank and modify the `BUILTIN_SSH_SERVER_USER`.
273
280
-`SSH_DOMAIN`: **%(DOMAIN)s**: Domain name of this server, used for displayed clone URL.
@@ -313,6 +320,7 @@ The following configuration set `Content-Type: application/vnd.android.package-a
313
320
-`LFS_LOCKS_PAGING_NUM`: **50**: Maximum number of LFS Locks returned per page.
314
321
315
322
-`REDIRECT_OTHER_PORT`: **false**: If true and `PROTOCOL` is https, allows redirecting http requests on `PORT_TO_REDIRECT` to the https port Gitea listens on.
323
+
-`REDIRECTOR_USE_PROXY_PROTOCOL`: **%(USE_PROXY_PROTOCOL)**: expect PROXY protocol header on connections to https redirector.
316
324
-`PORT_TO_REDIRECT`: **80**: Port for the http redirection service to listen on. Used when `REDIRECT_OTHER_PORT` is true.
317
325
-`SSL_MIN_VERSION`: **TLSv1.2**: Set the minimum version of ssl support.
318
326
-`SSL_MAX_VERSION`: **\<empty\>**: Set the maximum version of ssl support.
0 commit comments