gatewayd
gatewayd copied to clipboard
Load config using CLI flags
This will override everything except the plugins (?), according to this:
This will be the order of precedence for loading and applying config:
- Plugin default values.
- Plugin config file.
- Environment variables for plugins.
- Global default values.
- Environment variables for global config.
- Global config updated by plugins via
OnConfigLoadedhooks.Plugins override the global configs and has the highest precedence overall.
This seems interesting: https://gist.github.com/jxsl13/52127961c2cd2d2798cd340b4032218c
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.