-
Notifications
You must be signed in to change notification settings - Fork 15
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
cookie associated with a cross-site resource at http://geut-webrtc-signal.herokuapp.com/ : how to rely solely on the local signaling server? #3
Comments
Hey Marco, thanks for the post. The Geut server is being used for the WebRTC connections. We need to use a central server for that due to the way WebRTC signaling works. If you use just a local proxy server, you'll be able to connect to node.js peers using hyperswarm and wouldn't be able to connect to other browser peers. If you want, though, you can configure your own signaling server using the discovery-swarm-webrtc command line. https://github.com/geut/discovery-swarm-webrtc#server What's important is that the signalling server will need to be on the internet and will need to be accessible to to all your peers. |
Hi @RangerMauve ! "the signalling server will need to be on the internet and will need to be accessible to to all your peers": yes. this is the point. But how to make it working? I stopped the systemd service I created before:
I started the discovery-swarm-webrtc :
I modified in the Hyperswarmweb.vue file the wsProxy as :
I get this error : " Mixed Content: The page at 'https://ggc.world/signup' was loaded over HTTPS, but attempted to connect to the insecure Uncaught DOMException: Failed to construct 'WebSocket': an insecure WebSocket connection may not be initiated from a page This is the part of the nginx webserver configuration related to websocket:
Following the indications found here: https://stackoverflow.com/questions/37712224/mixed-content-error-when-accessing-websocket-server-hosted-in-a-different-port I modified in the Hyperswarmweb.vue file the wsProxy:
and now get this error: " If I modify the Proxy in Hyperswarmweb.vue :
I get this error: " I tried also to follow these indications: https://www.nginx.com/blog/websocket-nginx/
But I get the same error : " I read here: https://stackoverflow.com/questions/43768161/using-ws-while-on-https-mixed-content I already put them in the NGINX configuration, in the part related to the websocket. How to make the Websocket connection working? |
Hey Marco, a couple of things that might help:
Hope that helps you on your way. 😁 |
Hi @RangerMauve !! I'm trying to understand your points:
|
Hey sorry for the super late response. A) Yes, if you're using HTTPs it should use wss and your server domain name. B) That should be working, did you C) Essentially, if you have a local signalling server, you'll only be able to connect to peers on your machine since peers need to use the same signalling server if they want to connect to each other. |
In the vue file I put these lines of code:
When I add the previously commented line: this.swarm.join(topic), I get this, at the moment, warning message:
"
I'm actually executing the proxy-server as linux service:
nano /home/marco/webMatters/vueMatters/GGC/node_modules/hyperswarm-web/NEWbin.js :
vue info:
I'm developing my app on a local PC where I'm running an NGINX webserver.
in the nginx configuration I added:
So.. where this http://geut-webrtc-signal.herokuapp.com/ come from?
How to rely solely on the local signaling server?
Looking forward to your kind help.
Marco
The text was updated successfully, but these errors were encountered: