title: nginx proxy header with client socket port in addition to client IP
body: <p>I'm trying to modify my nginx configuration so that I can pass through the origin client's IP as well as the client's socket source TCP port, as when I pass the connection to my upstream server it recognizes the source IP and port as being the one opened by nginx instead of the client, ie:</p>
  
  <pre><code>proxy_set_header X-Real-IP $remote_addr;                              │
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;          │
  </code></pre>
  
  <p>is there such a thing as $remote_port? I'm not sure if the only way to achieve this would be to write my own module?</p>