diff --git a/be/config.yaml b/be/config.yaml index 1e2b515..9418879 100644 --- a/be/config.yaml +++ b/be/config.yaml @@ -2,7 +2,7 @@ libp2p: listenMultiaddrs: - - /ip4/127.0.0.1/tcp/8080/ws + - /ip4/0.0.0.0/tcp/8080/ws announceMultiaddrs: - /ip4/127.0.0.1/tcp/8080/ws # - /dns4/example.com/tcp/443/wss Example of multiaddr with Secure WebSockets diff --git a/be/src/start-libp2p-relay.ts b/be/src/start-libp2p-relay.ts index 7a71a34..2d453c2 100644 --- a/be/src/start-libp2p-relay.ts +++ b/be/src/start-libp2p-relay.ts @@ -83,7 +83,7 @@ export async function startLibp2pRelay({ const peerMessageExchange = new PeerMessageExchangeProtocol({ protocolId: "/icod2/relay-peer-message-exchange/1.0.0", }); - peerMessageExchange.initialize(libp2p); + peerMessageExchange.initialize(libp2p, { skipHandleInitialization: false }); logger.info( { peerId, shortPeerId: shortenPeerId(peerId) }, diff --git a/fe/index.html b/fe/index.html index da9e8e7..fec9267 100644 --- a/fe/index.html +++ b/fe/index.html @@ -26,11 +26,63 @@ body { margin: 0; } + + #root { + min-height: 100vh; + } + + .preload { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + width: 100%; + height: 100vh; + font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif; + color: #c089ff; + background: transparent; + opacity: 0; + animation: preload-fade 1500ms ease forwards; + animation-delay: 750ms; + } + + .preload__spinner { + width: 48px; + height: 48px; + border: 4px solid rgba(192, 137, 255, 0.25); + border-top-color: #c089ff; + border-radius: 50%; + animation: preload-spin 1s linear infinite; + margin-bottom: 12px; + } + + @keyframes preload-spin { + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } + } + + @keyframes preload-fade { + from { + opacity: 0; + } + to { + opacity: 1; + } + }
Loading Stashcrate...
+