diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-22 20:55:25 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-22 20:55:25 +0800 |
commit | 2c71f995b73774d5b910d49a024e51c4ac902f3a (patch) | |
tree | 34642fce293e62352e6b75aa92217afaae7319a9 /forge.scfg | |
parent | Configurable timeout (diff) | |
download | forge-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.scfg | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 { |