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 /config.go | |
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 'config.go')
-rw-r--r-- | config.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -24,6 +24,7 @@ var config struct { ReadTimeout uint `scfg:"read_timeout"` WriteTimeout uint `scfg:"write_timeout"` IdleTimeout uint `scfg:"idle_timeout"` + ReverseProxy bool `scfg:"reverse_proxy"` } `scfg:"http"` Hooks struct { Socket string `scfg:"socket"` |