Though stud can write the IP info, as far as I can tell there's still no way to pull that out on node without building your own version of node that supports a pre-parse event before passing the stream to the HTTP parser. This is a pretty simple change and is what we do, but does require our own deployment of node.
Also of note, until 3 days ago, to get stud to *read* the PROXY line with the IP address coming from HAProxy also required a version of stud other than their master one, but it looks like they finally merged one of the outstanding pull requests to add that, so you can use the --proxy-proxy option to pass the IP from HAProxy through stud. Jimb Esser Cloud Party, Inc On Monday, August 13, 2012 12:11:17 PM UTC-7, Matt Sergeant wrote: > > Oooh. Done! > > On Mon, Aug 13, 2012 at 2:45 PM, Guillermo Rauch wrote: > >> No. Stud can use the PROXY protocol to communicate with HAProxy. From the >> README: >> >> stud will optionally write the client IP address as the first few octets >>> (depending on IPv4 or IPv6) to the backend--or provide that information >>> using HAProxy's PROXY protocol. >> >> >> -- >> Guillermo Rauch >> LearnBoost CTO >> http://devthought.com >> > > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
