Add configuration parsing
Parse configuration from ENV + a single TOML file to start with. A few things to keep in mind:
-
There should be a default configuration location ( /etc/postmgr/conf.d
?), probably print @ startup -
A data
directory should be required/necessary (with a reasonable default,/var/lib/postmgr/data
?), probably print this @ startup -
Configuration shouldn't be at the same level as any data (platforms like k8s can't inject single files readily, and have to mount a whole folder) -
Inheritance (most important last) Defaults -> TOML file -> ENV vars
Edited by MrMan