04efabaacb
We use the Ctx.Req object's RemoteAddr value as it should include the IP:port combo according to https://golang.org/pkg/net/http/#Request. The default template uses Ctx.RemoteAddr which Macaron attempts to parse for x-forwarded-for values but this has the problem of stripping out any port info. The port info is important for us because we are doing layer 4 load balancing and not http l7 load balancing. That means the ip:port mappings are necessary to map between haproxy and gitea logs. Change-Id: Icea0d3d815c9d8dd2afe2b1bae627510c1d76f99 |
||
---|---|---|
.. | ||
defaults | ||
tasks | ||
templates | ||
README.rst |
Install, configure, and run Gitea.