I am very curious and wanted to know that where the config.yaml content came from?
And also could I edit that because I have to pass custom flag when run any service so it will be helpful if I can generate my own configuration loaded config.yaml for each.
storj-sim does not designed to be used in production, it’s a test network. The storj-sim binary generates all needed configs with storj-sim network setup command and run all integrated services with storj-sim network run.
But in general you can run almost any service with command setup --help to see what options you can set and which will be written to the related config.yaml.
This short help will also show what is default path for that config in your system.
Many services allow to specify a path to the config.yaml file in their run command, so you may check the run --help command as well.
storj-sim stores all configs under the path, which you can see for the --config-dir option, if you run storj-sim without any command.
I dont want to pass these flags every time so I change in content of config.taml and insert this so whenever I run gateway-mt setup it automatically takes my given inputs rather than its defaults.
yes, try to add these options to your gateway-mt setup command with all previous needed options.
You may also edit the config.yaml with a plain text editor, Notepad++ for Windows, nano for Linux and Mac or use a Visual Studio Code.
All arguments can be added as options, so the --auth.token my-test-auth-token argument can be added as an option to the config.yaml file:
It’s open source, you may change it.
However, the batch script would be better and easier for me, if I were you.
Or just use setup parameters when you create a network.
Perhaps I do not understand a goal, but test network doesn’t seem to me as a tool to generate hundreds independent local network, otherwise why do you want to automatize it?
If you provide custom options in the run command, they will override parameters loaded from the config.yaml. However, they will not modify the file itself.