etcdconfigweb

command
v0.0.0-...-a6f28c4 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

etcdconfigweb provides an http interface to query and register nodes from the etcd KV store.

By default it will listen on port 8080 on any interface. You can change this by passing an argument like ":1234", which would configure to listen on port 1234 on any interface or "127.0.0.1:1234" to only listen on the IPv4 local address "127.0.0.1" on port "1234".

It expects an etcd configuration file at a fixed location (see gitli.stratum0.org/ffbs/etcd-tools/ffbs.CreateEtcdConnection) and a signify private key to sign the requests at "/etc/ffbs/node-config.sec"

As it doesn't need any root capabilities, it should be considered to run this executable as a normal user.

The HTTP server supports two endpoints:

  • /config to retrieve node configurations or create new nodes
  • /etcd_status to retrieve the current node count in etcd and the amount of successful and failed requests to the /config endpoint

Jump to

Keyboard shortcuts

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