nginx X-Forwarded-For $proxy_add_x_forwarded_for code example Example: nginx set x-forwarded-for proxy_set_header X-Forwarded-For $remote_addr;