Config
Configs storage allows to read configuration from various sources.
system: config introduced in v0.1
Config system is one of those systems which have to be configured through
the command line only, since actual configuration parsing starts only after
Config system fished initialization. Flag name is -c
or --config
.
Some other systems (e.g. Secret) might use default configs location to store their data. None of them will interfere with your configuration.
Configuration options
Param | Required | Type | Default | Description |
---|---|---|---|---|
provider | string | fs |
Provider name to use for configs loading |
Other params may vary depends on a selected provider.
If no options are specified, system defaults to local file storage](/systems/config/local-fs/) provider.
Example
Both following examples will load local filestorage configs:
./go-home \
-c provider:fs \
-c location:/data/go-home
./go-home \
--config=location:/data/go-home