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

Fails to connect to websockets #32

Open
acagastya opened this issue Feb 25, 2021 · 1 comment
Open

Fails to connect to websockets #32

acagastya opened this issue Feb 25, 2021 · 1 comment

Comments

@acagastya
Copy link

Hi, I tried running this on my server <video.example.com> and created an nginx reverse proxy.

However, I am getting this error in the console.

Firefox can't establish a connection to the server at wss://video.example.com/socket.io/?EIO=3&transport=websocket&sid=CqM_U7hMStz1Qw3gAAAA.
Firefox can't establish a connection to the server at wss://video.example.com/peerjs/peerjs?key=peerjs&id=8c4cc4ef-5843-4407-98f6-ebc75ff699b9&token=qmq9ep06q9j.

The nginx config looks like this:

server {
  server_name video.example.com;

  location / {
    proxy_pass http://localhost:3030;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  }
}

Any idea how this can be fixed?

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