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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址