Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nginx missing websocket proxy #3361

Open
sjanssen2 opened this issue Feb 15, 2024 · 1 comment · Fixed by #3362
Open

nginx missing websocket proxy #3361

sjanssen2 opened this issue Feb 15, 2024 · 1 comment · Fixed by #3362

Comments

@sjanssen2
Copy link
Contributor

location / {
proxy_pass $scheme://mainqiita;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Accept-Encoding identity;
}

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 antgonza linked a pull request May 15, 2024 that will close this issue
2 tasks
@antgonza
Copy link
Member

Fixed here: #3362

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants