Configuration files use JSON format. Each component <name>
(for example vision
) has its configuration in root["<name>"]
. Other names than <name>
are not used for that component.
Using multiple configuration files is supported. If two (or more) configuration files have same keys, last loaded file sets the final values (Q: Are both objects and arrays merged?). Configuration files are included in following order, later files replace values set earlier:
/local/share/ftl/config.json
~/.config/ftl/config.json
./config.json
-
config.json
files found in path(s) in argument(s) - Config file path provided in
--config
argument
Configuration values set in command line parameters override configuration file values.
Configuration structure is not fixed (yet). For reference, see common/config/config.json
.