feat(cli): Add support for environment variable and configuration file parameters #285
Labels
feature
Request for new feature or enhancement
infrastructure
CI/CD, deployment and infrastructure changes
Is there an existing issue?
Motivation
The goal of this issue is to introduce 2 new methods for specifying parameters on Madara. Currently only cli arguments are supported.
Request
We would like to implement:
Set up your node's environment variables using the
MADARA_
prefix. For example:MADARA_BASE_PATH=/path/to/data
MADARA_LOG=info
These variables allow you to adjust the node's configuration without using command-line arguments.
You could use a JSON, TOML, or YAML file to structure your configuration settings. Specify your configuration file on startup with the -c option. Here's a basic example in JSON format:
Configuration priority would be as follows: command-line arguments > environment variables > configuration files.
When the same setting is configured in multiple places, the source with the highest priority takes effect.
Solution
as described above
Are you willing to help with this request?
Yes!
The text was updated successfully, but these errors were encountered: