IPFS Secure Websocket

Hi, I am using libp2p-webrtc-star to connect the browser to jsipfs on nodejs. Trying to secure the connection with SSL using http proxy in nodejs. But chrome is still giving: This request has been blocked; this endpoint must be available over WSS., Should I change the swarm address which is currenly: “/libp2p-webrtc-star/ip4/IP_ADDRESS/tcp/8443/ws”. The express app listens on 8443 and redirects to 9090 the star-signal port. What should I do to secure this?

1 Like

You’ll need to have a domain to get SSL working, so instead of using ip4 you’ll need to be using dns4 and point it at the domain, adding wss instead of just ws in the end of the address.

We’re running a example star-signal instance for dev, you can connect to it with /libp2p-webrtc-star/dns4/star-signal.cloud.ipfs.team/wss, you just have to change star-signal.cloud.ipfs.team to your own domain to use your own star-signal server.

2 Likes

Victor thank you so much, I have been struggling with this issue for some time!

1 Like