Replies: 1 comment
-
|
Yes, I would expect this to be the case.
Correct. ie: a podman / docker environment where a custom mujina.toml config can be mounted to the container and read at startup. If provided, this mujina.toml should take precedence over all others. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed the file
mujina-miner/src/config.rshas the following functions to load config from files:The first says files should be loaded from
/etc/mujina/mujina.tomland~/.config/mujina/mujina.toml"with proper merging". Can we clarify what proper mergin is? What happens if we have clashing keys in different files? Is there a precedence like user (in the home folder) overwrites global (in /etc) ones?Regarding the
load_fromfunction, is it meant so that people could have "portable" config files and perhaps point to it via CLI arguments?I believe this is a simple implementation that reduce hardcoded values throughout the codebase and open customization possibilities for mujina's users.
Beta Was this translation helpful? Give feedback.
All reactions