在使用 nginx 自定义域名配置方式时,控制台中的最后登录 IP 如何获取?

如题,我在使用 nginx 自定义域名配置方式后,用户的登录 IP 都是我代理服务器的 IP 地址,请问如何获取到终端用户的 IP 呢?我的 Nginx 配置片段如下。

location / {
# 将应用域名重定向到自定义域名
proxy_redirect xxx bbb;
# 上述配置的应用域名
proxy_set_header Host abc.authing.cn;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header User-Agent $http_user_agent;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_ssl_server_name on;
# proxy_pass 配置与 upstream 配置保持一直
proxy_pass https://wz-yx;
index index.html index.htm;
client_max_body_size 256m;
client_body_buffer_size 128k;
proxy_connect_timeout 1h;
proxy_send_timeout 1h;
proxy_read_timeout 1h;
proxy_buffers 32 4k;
}