Right now the default config directory is hardcoded to ~/.mina-config.
This will be fixed eventually. In the meantime, you can pass -config-directory
to the daemon to look there.
The daemon has many options. If you run mina daemon -h, it will explain what
they are.
The daemon will look for a $CONF_DIR/daemon.json on startup. That file should
be a single JSON object containing the field daemon: {...}. These settings
are overridden by their corresponding command-line flags. See mina daemon -h
for more information about them.
These flags are supported in the daemon object of the config file:
client-portintlibp2p-portintrest-portintblock-producer-keyprivate-key-fileblock-producer-pubkeypublic-key-stringblock-producer-passwordstringcoinbase-receiverpublic-key-stringrun-snark-workerpublic-key-stringsnark-worker-feeintpeersstring list. This does not get overridden by-peerarguments. Instead,-peerarguments are added to this list.work-selectionseq|rand Choose work sequentially (seq) or randomly (rand)
(default: seq)work-reassignment-waitintlog-received-blocksboollog-txn-pool-gossipboollog-snark-work-gossipboollog-block-creationbool
The daemon will read some environment variables on startup.
MINA_CLIENT_TRUSTLIST is a comma-separated list of CIDR masks, for example 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 would allow any client on an RFC1918 private network to control the daemon. This list can be edited with mina advanced client-trustlist commands.
There are other environment variables, but they aren't documented yet.