gatewayd icon indicating copy to clipboard operation
gatewayd copied to clipboard

Load config using CLI flags

Open mostafa opened this issue 2 years ago • 1 comments

This will override everything except the plugins (?), according to this:

This will be the order of precedence for loading and applying config:

  1. Plugin default values.
  2. Plugin config file.
  3. Environment variables for plugins.
  4. Global default values.
  5. Environment variables for global config.
  6. Global config updated by plugins via OnConfigLoaded hooks.

Plugins override the global configs and has the highest precedence overall.

This seems interesting: https://gist.github.com/jxsl13/52127961c2cd2d2798cd340b4032218c

mostafa avatar Jan 06 '23 17:01 mostafa

Using CLI flags for configuring every single configuration item seems somewhat counterintuitive. There will be lots of flags for a single subcommand. This should be further investigated.

mostafa avatar Jan 15 '23 22:01 mostafa