Closed gnieto closed 4 years ago
No concerns with that Config crate or Anyhow as of now. We should use yaml. That is the default for other Home Server admins, so best to be consistent. As for prefix, probably ok. Maybe worth looking at what Synapse and Dendrite do, but we can always adjust later.
Changed to yaml
Use mehcode/config crate to configure the sources and priorites for configuration loader.
I've moved all structs on
server/mod.rs
to a config module and I've splitted in two distinct structures:As
CONFIG
is a static value and is used as a singleton on some places, I've needed to add theMAELSTROM_CONFIG_FILE
env var to allow loading from a distinct file on tests.I wanted to ask some questions:
mehcode/config
and/oranyhow
?MAELSTORM
?