문제

I'm terminating SSL with Stud and forwarding the request to HAProxy which determines if it's a WebSocket connection and either forwards the request to Node.js or to nginx. The problem I'm having is that I cannot seem to get the X-forwarded-for from Stud. When I set write-ip in the stud conf my requests fail.

Is this possible with such a stack?

도움이 되었습니까?

해결책

Stud is a "dumb" proxy, so it can't alter the headers in any way. HAProxy -> Nginx can do what you want certainly.

An option is pound instead of stud.

다른 팁

Another option is hitch: https://github.com/varnish/hitch

Has PROXY support, works with Varnish and haproxy.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top