0.2.50 • Published 3 years ago

@dstack-js/relay v0.2.50

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
3 years ago

@dstack-js/relay

Relay provides DStack peer with libp2p-webrtc-star compatible signaling server written with multi-tenancy support using redis

Metrics (Grafana Dashboard)

Login into Grafana using your GitHub, Grafana can be only accessed by organization members, remember to grant access to dstack-js organization while logging in.

Supported transport versions

  • libp2p-webrtc-star@0.20.1
  • libp2p-websockets@0.15.0

Public relay

PeerId - QmV2uXBKbii29iJKHKVy8sx5m49qdDTBYNybVoa5uLJtrf

Signaling - /dns4/relay.dstack.dev/tcp/443/wss/p2p-webrtc-star/

Bootstrap - ['/dns4/relay.dstack.dev/tcp/443/wss/p2p-webrtc-star/p2p/QmV2uXBKbii29iJKHKVy8sx5m49qdDTBYNybVoa5uLJtrf']

Using predefined peer id

Generate peer id private key using peer-id package

const PeerId = require('peer-id');

const id = await PeerId.create({ bits: 1024, keyType: 'RSA' });
console.log(JSON.stringify(id.toJSON(), null, 2));
{
  "id": "Qma9T5YraSnpRDZqRR4krcSJabThc8nwZuJV3LercPHufi",
  "privKey": "CAAS4AQwggJcAgEAAoGBAMBgbIqyOL26oV3nGPBYrdpbv..",
  "pubKey": "CAASogEwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMBgbIqyOL26oV3nGPBYrdpbvzCY..."
}

or generate in browser

Then you can store privKey in PRIVATE_KEY environment key

0.2.50

3 years ago

0.2.41

3 years ago

0.2.49

3 years ago

0.2.48

3 years ago

0.2.47

3 years ago

0.2.46

3 years ago

0.2.45

3 years ago

0.2.44

3 years ago

0.2.43

3 years ago

0.2.42

3 years ago

0.2.40

3 years ago

0.2.39

3 years ago

0.2.38

3 years ago

0.2.37

3 years ago

0.2.35

3 years ago

0.2.34

3 years ago

0.2.33

3 years ago

0.2.32

3 years ago

0.2.31

3 years ago

0.2.30

3 years ago

0.2.27

3 years ago

0.2.26

3 years ago

0.2.25

3 years ago

0.2.24

3 years ago

0.2.23

3 years ago

0.2.22

3 years ago

0.2.21

3 years ago

0.2.20

3 years ago

0.2.19

3 years ago

0.2.18

3 years ago

0.2.16

3 years ago

0.2.15

3 years ago

0.2.14

3 years ago

0.2.13

3 years ago

0.2.12

3 years ago

0.2.11

3 years ago

0.2.10

3 years ago

0.2.9

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago