Categorygithub.com/SkynetLabs/servers
repositorypackage
0.0.5
Repository: https://github.com/skynetlabs/servers.git
Documentation: pkg.go.dev

# README

Servers

This tool announces the current host to the world by publishing its name via a skylink v2. The skylink contains a JSON array with the list of all hosts who are announcing themselves with the same credentials set. Each host will scan the list for outdated entries and prune them.

The tool relies on the following environment variables:

  • SKYNET_SERVER_API: the full name of the host, e.g. https://dev1.siasky.dev
  • SIA_API_PASSWORD: the api password of the skyd node we use to communicate to skynet
  • SERVERLIST_ENTROPY: 32 bytes of entropy in hex encoding, used to derive the public and secret keys used to access the v2 skylink
  • SERVERLIST_TWEAK: 32 bytes of data in hex encoding
  • SERVERLIST_SKYD: the IP and port where we can find skyd, e.g. localhost:9980 or 10.10.10.10:9880