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

WebSocket connection to Failed #59

Open
pathapatisivayya opened this issue Jun 9, 2021 · 1 comment
Open

WebSocket connection to Failed #59

pathapatisivayya opened this issue Jun 9, 2021 · 1 comment

Comments

@pathapatisivayya
Copy link

I am using Camus-chat Works well on localhost but the same code move production this error is coming

WebSocket connection to 'wss://interviews.ceipal.com/room/tested/ws' failed: please help me how to fix
Capture

@dotbloup
Copy link

The problem comes from the web server that receive the websockets requests. It requires some changes.

FOr instance, i use nginx in front of camus: Here is my configuration to make it work:

`map $http_upgrade $connection_upgrade {
        default upgrade;
        '' close;
    }

server {



listen 80 default_server;
        listen [::]:80 default_server;


        location / {
                proxy_pass http://127.0.0.1:5000;
proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection $connection_upgrade;
            proxy_set_header Host $host;
        }

}

`

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

No branches or pull requests

2 participants