Thanks for sharing it works for you, would you mind sharing what you had to 
change in case someone else on the group (or in the future) has a similar 
question?

That'd be awesome, thanks in advance :-)

-- 
Konrad `ktoso` Malawski
Akka @ Lightbend

On 21 April 2016 at 12:25:12, [email protected] ([email protected]) 
wrote:

ok, never mind, had to adjust haproxy config.


On Wednesday, April 20, 2016 at 9:11:31 PM UTC+3, [email protected] wrote:
Hi guys,

Does akka http websocket work behind proxies like haproxy?
The reason I ask is that I have implemented rest and web socket services in 
akka http, both work fine without proxy, but after putting it behind haproxy, 
web socket implementation stopped working silently, as I can see requests are 
not being upgraded. Added some logging to the handler and here is the headers 
of the websocket request:

Remote-Address: 172.18.0.1:37368
UpgradeToWebSocket:
Host: api.test.com
Connection: Upgrade
Pragma: no-cache
Cache-Control: no-cache
Upgrade: websocket
Origin: chrome-extension://dmogdjmcpfaibncngoolgljgocdabhke
Sec-WebSocket-Version: 13
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like 
Gecko) Chrome/48.0.2564.109 Safari/537.36
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US, en;q=0.8
Sec-WebSocket-Key: Y0n2JNgkrFMYe5o13k/yDQ==
Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits
X-Forwarded-Proto: https
X-Forwarded-For: 10.0.2.2
Timeout-Access: <function1>


My haproxy terminates ssl and route only http to the services, also haproxy 
setup should not be an issue, as I used it with node.js services without 
problems.

Any ideas?
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to