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.

Reply via email to