decentrasol / docker-ipfs-infrastructure Goto Github PK
View Code? Open in Web Editor NEWSetup a websocket libp2p relay with letsencrypt and nginx
Setup a websocket libp2p relay with letsencrypt and nginx
e.g. in hotel wifi's where Webrtc is restricted through some firewall, (connection is established via Websocket), relay establishes the WebSocket connection to browser peers
The peers create a Webrtc swarm successfully
Unfortunately, if any peer publishes a pub-sub message no other peer can listen and react to it. (except probably the relay, which doesn't relay it via WebSocket).
Mobile networks:
In mobile networks on the other hand this works perfectly (via webrtc then)
Test:
in an environment where peer-to-peer connections are blocked (peer-to-peer pub-sub doesn't work) which if that counts for both a WebRTC only connected peers and also for a Websocket only connected peers.
25.05.2024 (location ekb coworking) - successfully webrtc only connected swarm (via Rust WebRTC relay) but NO pubsub on deContact topic but OrbitDB replicates successfully (via pubsub)
25.05.2024 (location ekb coworking) - successfully websocket only connected swarm (via Websocket relay) but NO pubsub on deContact but OrbitDB replicates successfully (via pubsub)
check if websocket relay can subscribe to a peers topic manually.
make sure / clarify a websocket relay is able to relay pubsub messages via websocket if peers are not already connected via webrtc
After about 1h the WebSocket relay "stops working".
It accepts new connections from browser peers but doesn't seem to publish peer-discovery messages which results in the symptom that browser peers don't create a swarm.
After restarting the relay everything works again as before.
Relay runs inside a docker-compose container without persistent volume.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.