Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configuration #6

Open
MSevey opened this issue Mar 22, 2021 · 0 comments
Open

Add configuration #6

MSevey opened this issue Mar 22, 2021 · 0 comments

Comments

@MSevey
Copy link
Contributor

MSevey commented Mar 22, 2021

Issue by m-cat
Friday Aug 21, 2020 at 15:19 GMT
Originally opened as NebulousLabs/skynet-docs#28


There should be configuration options such as a dot-file and/or environment variables. Some initial thoughts:

  1. As part of Smart portal selection NebulousLabs/skynet-docs#21 we should support system-wide configuration files with not just default portal selection but also connection options like --api-key etc.
  2. We should also support environment variables as they are standard fare for cli applications. They should be namespaced with SKYNET_ e.g. SKYNET_API_KEY.
  3. The priority of configuration should be as given here, that is, check first for cli options, then env vars, then config options.

This applies to all SDKs except the CLI, which should outsource the work of determining configuration to the Go SDK. See NebulousLabs/skynet-cli#7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant