Skip to content

WIP : Make the config extendable

Alexis Metaireau requested to merge almet/copanier:make-config-extendable into master

I've started thinking about how the configuration could be made extendable, and came with something like this.

Currently, it's possible to extend the configuration only with environment variables only. After playing a bit with this new idea, I now think that env variables are good enough.

Nevertheless, if you think that env variables aren't good enough, then it might be interesting to merge this. It provides the logic of reading from default config, then a configuration file and then overrides with env variables.

If we chose to merge this, we've yet to find how we should pass the name of the config file and initialize everything in the initialize() method somehow.

Merge request reports