planetary-social / ansible-scripts

Ansible automation scripts used at Planetary
MIT License
2 stars 3 forks source link

Fix websocket-related headers not being passed to notification service #37

Closed boreq closed 1 year ago

boreq commented 1 year ago

I believe we need those headers to get the websockets working.

http://nginx.org/en/docs/http/websocket.html

As noted above, hop-by-hop headers including “Upgrade” and “Connection” are not passed from a client to proxied server, therefore in order for the proxied server to know about the client’s intention to switch a protocol to WebSocket, these headers have to be passed explicitly: