-
Notifications
You must be signed in to change notification settings - Fork 16
Cannot connect to rendezvous from HTTPS pages (insecure pages work fine) #13
Comments
Are you running nginx or something in between? How are you dealing with the certificates? Also, how are you connecting the browser peers to the rendezvous server? The more info we can get, the better we can help you :) |
@ccashwell Self-hosted websocket-star-rendezvous instances run on HTTP by default. In order to use them on HTTPS you need to put the rendezvous server behind an SSL reverse-proxy |
So, first thing's first: it's not my signaling server. I can verify this by replacing it with any of the hosted rendezvous servers, all of which are hosted over HTTPS:
I have my private rendezvous server sitting behind nginx reverse proxy to enable SSL. I'm using ipfs-pubsub-room to connect peers to the swarm using the following code:
|
@ccashwell are you getting any errors or something? What makes you sure things are not working? Maybe it's your browser. Can you try running https://benchmark-js.ipfs.io/ and clicking "Start " in the top, then after that clicking "Run"? Should connect you to a signalling server under |
BehaviorAll clients over HTTP:
All clients over HTTPS:
Some clients over HTTP, others over HTTPS:
|
Is it possible this has to do with a difference between Regarding browsers, this issue is visible on a public server with clients from all over the world using various browser environments. I don't think that would make sense as a browser issue. |
@victorbjelkholm the "error" I'm seeing is that peers connecting over HTTPS can't see one another. Otherwise it seems to function great. I'm unsure whether this issue is related to |
Seems like this could be related to libp2p/js-libp2p-webrtc-star#142 |
I have the same problem and I found a workaround. |
The rendezvous server seems to reject requests over HTTPS. I can connect several browser peers without any issues to a deployed rendezvous server when the client app is served over HTTP, but as soon as the client is moved behind an HTTPS endpoint it becomes impossible to connect to a that same rendezvous server. Is this a bug or am I missing something?
I'm running the latest NPM release ([email protected]) on Ubuntu 16.04, attempting to connect browser clients using ipfs-pubsub-room. The hosted rendezvous server similarly worked from localhost and deployed non-HTTPS client pages and failed over HTTPS.
The text was updated successfully, but these errors were encountered: