You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Environment variables
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.
Configuration files
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:
Shouldn't the priority be command-line arguments > configuration files > environment variables, i.e. env variables being least priority since they are least visible and least obvious in any deployment?
Shouldn't the priority be command-line arguments > configuration files > environment variables, i.e. env variables being least priority since they are least visible and least obvious in any deployment?
I prefere to have env > configuration files since configuration files are more dedicated to predefined and static production environments, whereas environment variables are very useful when values need to be changed frequently. Moreover, they are essential during our ci deployments.
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: