zodern / meteor-up

Production Quality Meteor Deployment to Anywhere
http://meteor-up.com/
MIT License
1.27k stars 281 forks source link

WebSocket connection to 'wss://www.domain.com/sockjs/225/ix6zur43/websocket' failed: Error during WebSocket handshake: Unexpected response code: 400 #1224

Open eugle opened 3 years ago

eugle commented 3 years ago

It is suspected that Nignx configuration has enabled SSL. There is no error when accessing a URL that is not encrypted by HTTP, but it will report an error after encrypted by HTTPS. Where should I find the solution

This custom Location is enabled

proxy: {
        domains: 'www.domain.com',
        nginxLocationConfig:'./location.conf',

location.conf

proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

The problem is still