Closed hvelarde closed 5 years ago
I'm not opposed to a dedicated directive, but on the other hand, this works quite well already:
[instance]
zope-conf-additional +=
trusted-proxy 192.168.1.1
well, that's easier; that directive is missing and we need to document it somewhere.
Currently access logs behind a proxy show the IP of the proxy, but according to Zope's documentation the
trusted-proxy
directive can be used to modify that behavior: if a request comes from a trusted proxy and contains anX_FORWARDED_FOR
header, the address provided byX_FORWARDED_FOR
will be logged.See also: https://github.com/zopefoundation/Zope/blob/2.13.28/src/ZServer/medusa/http_server.py#L43-L51