qiita icon indicating copy to clipboard operation
qiita copied to clipboard

nginx missing websocket proxy

Open sjanssen2 opened this issue 1 year ago • 1 comments
trafficstars

https://github.com/qiita-spots/qiita/blob/57d1b146729223da9daa286a1cc75db6f2923746/qiita_pet/nginx_example.conf#L59-L66 The provided example nginx configuration seems to not forward websocket HTTP traffic.

W 240215 18:58:08 web:2161] 400 GET /study/list/socket/ (127.0.0.1) 4.57ms
[D 240215 18:58:08 websocket:164] Can "Upgrade" only to "WebSocket".

Should we add a working configuration to this example, such that user do not have to solve this issue by themselves? Btw. I am not sure what the matching configuration would look like, can we follow: https://www.serverlab.ca/tutorials/linux/web-servers-linux/how-to-configure-nginx-for-websockets/ ?

sjanssen2 avatar Feb 15 '24 20:02 sjanssen2