Configuration Files
Description of the structure and contents of the "foxmq.d/" directory
address-book.toml
address-book.tomlExample: 2 Nodes
# An address book file is simply a list of entries in the `addresses` array.
# The `foxmq address-book` subcommand adds comments above each entry
# telling you which private key file corresponds to which node.
# The entry for the first node.
# key_0.pem
[[addresses]]
# The key string is the PEM encoded public key for the node.
# Since PEM is a multi-line format, TOML's support for multi-line strings
# comes in really handy here.
#
# If manually generating an address book,
# note that FoxMQ currently only supports ECDSA keypairs using the P-256 curve.
key = """
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE48VTK97faW815TQKbU/OY/ENsLmw
9M4D46bz8T/MfSlfErjKW6aMmB+armT2Fg5/5+T53ezUUlwP1ELP/GpUog==
-----END PUBLIC KEY-----
"""
# The UDP socket address (IP:port) that the node will be listening on
# for cluster connections.
#
# Corresponds to `--cluster-addr`, or a socket address that connects to it
# when using `0.0.0.0` for the IP address.
addr = "172.16.238.2:19793"
# The entry for the second node.
# key_1.pem
[[addresses]]
# Note that each node's key and cluster address must be unique within the address book.
key = """
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEdJH/jhJEJ8zJfnYbu1gXZnSJ7a+g
K6BC6pGyzxP6tCQ75PX13XDaV9jdhAWvHt+gKOg+0u2nCikv8dfTOe6aTw==
-----END PUBLIC KEY-----
"""
addr = "172.16.238.3:19793"users.toml
users.toml
