Skip to content

Fails to connect to websockets #32

@acagastya

Description

@acagastya

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions