The header the trusted proxies put the client address in:
'x-forwarded-for' (default): each proxy appends the address it received
the request from (nginx: proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for).
'x-real-ip': the proxy sets it to the client address
(nginx: proxy_set_header X-Real-IP $remote_addr).
The header the trusted proxies put the client address in:
'x-forwarded-for'(default): each proxy appends the address it received the request from (nginx:proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for).'x-real-ip': the proxy sets it to the client address (nginx:proxy_set_header X-Real-IP $remote_addr).