root

command module
v0.0.0-...-efd6bed Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 34 Imported by: 0

README

Peernet Root Peer

The root peer client is a fork of the command line client. It adds statistics functionality and tracks the following KPIs:

  • Daily active peers
  • Weekly active peers [todo]
  • Monthly active peers [todo]
  • Full log of all new peers per day

Peers are counted uniquely based on their public key.

Compile

To build:

go build

To cross compile from Windows to Linux and deploy:

set GOARCH=amd64
set GOOS=linux
go build

chmod +x ./root
nohup ./root &

ps -ef | grep -i ./root
kill [pid]
Merge changes from Cmd

The changes from https://github.com/PeernetOfficial/Cmd should be merged regularly.

Deploy

These are the files of a root peer:

  • root.exe (or just root for linux)
  • Config.yaml - autogenerated, but settings should be immediately adjusted after first run, especially static IP:Port settings.
  • Web Files\* - folder for all web files if WebListen is set in config
Settings

Add the following settings to Config.yaml:

WebListen: ["127.0.0.1:1234","[::1]:1234"]
UseSSL: true
CertificateFile: "n.peernet.network-crt.pem"
CertificateKey: "n.peernet.network-key.pem"

DatabaseFolder: "csv"

The tool win-acme from https://www.win-acme.com/ can create and renew Let's Encrypt certificates. Note that the certificate is not yet automatically refreshed and a restart of the root process is required upon renewal.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL