aboutsummaryrefslogtreecommitdiff
path: root/forge.scfg
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-22 20:55:25 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-22 20:55:25 +0800
commit2c71f995b73774d5b910d49a024e51c4ac902f3a (patch)
tree34642fce293e62352e6b75aa92217afaae7319a9 /forge.scfg
parentConfigurable timeout (diff)
downloadforge-2c71f995b73774d5b910d49a024e51c4ac902f3a.tar.gz
forge-2c71f995b73774d5b910d49a024e51c4ac902f3a.tar.zst
forge-2c71f995b73774d5b910d49a024e51c4ac902f3a.zip
Support X-Forwarded-For for reverse proxies
Diffstat (limited to 'forge.scfg')
-rw-r--r--forge.scfg9
1 files changed, 8 insertions, 1 deletions
diff --git a/forge.scfg b/forge.scfg
index e2b703e..5003b75 100644
--- a/forge.scfg
+++ b/forge.scfg
@@ -14,9 +14,16 @@ http {
# What is the canonical URL of the web root?
root https://forge.example.org
+ # General HTTP server context timeout settings. It's recommended to
+ # set them slightly higher than usual as Git operations over large
+ # repos may take a long time.
read_timeout 120
- write_timeout 120
+ write_timeout 1800
idle_timeout 120
+
+ # Are we running behind a reverse proxy? If so, we will trust
+ # X-Forwarded-For headers.
+ reverse_proxy true
}
irc {