qiita-spots / qiita

Qiita - A multi-omics databasing effort
https://qiita.ucsd.edu/
BSD 3-Clause "New" or "Revised" License
120 stars 80 forks source link

nginx missing websocket proxy #3361

Open sjanssen2 opened 9 months ago

sjanssen2 commented 9 months ago

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/ ?

antgonza commented 4 months ago

Fixed here: https://github.com/qiita-spots/qiita/pull/3362