I'm not sure about stunnel, but at least if you're doing stud -> haproxy -> 
node.js, and you'er running haproxy in http mode, I think you can have 
haproxy add a header with the IP address which you can read on node. 
Although, for WebSockets, yeah, you may need HAProxy 1.5, which is a 
"development branch", though has been for over 2 years.

If you're running haproxy in tcp mode (required if you want to have the 
load balancer out front, instead of the SSL terminator out front, with 
haproxy -> stud -> node, or something similar, or possibly also required 
for WebSockets?), as far as I know, you need to patch node to allow a PROXY 
protocol line to be read to get original IPs (that is what we're doing, 
works great).

  Jimb Esser
  Cloud Party, Inc

On Monday, September 24, 2012 8:54:19 AM UTC-7, nqadail wrote:
>
> Is there currently a way to get the remote ip address through stunnel -> 
> haproxy -> node.js without relying on development branches? Other solutions 
> that might work? 
>
> Seems like websockets will be supported more fully over ssl in the future 
> but what about now?
>
>

-- 
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

Reply via email to