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

Config overrides on the command line #4180

Open
Stebalien opened this issue Aug 29, 2017 · 4 comments
Open

Config overrides on the command line #4180

Stebalien opened this issue Aug 29, 2017 · 4 comments

Comments

@Stebalien
Copy link
Member

We have too many daemon commandline flags and the ones we have often duplicate config options. Instead of having both, we should add a flag for temporarily setting config options:

ipfs daemon --with Gateway.Offline true \
            --with Addresses.Gateway /ip4/127.0.0.1/tcp/8080

This is significantly more verbose than the current system but is hierarchical and easier to maintain.

@ghost
Copy link

ghost commented Aug 29, 2017

👍

Another option is to do this with env variables, similar to what Hashicorp tools do, e.g. IPFS_CFG_Addresses_Gateway=/ip6/::1/tcp/8080 ipfs daemon. But then with that flag we can probably reuse a lot of code from the ipfs config command.

@Stebalien
Copy link
Member Author

I'm always a bit scared of environment variables as they tend to be invisible.

@ghost
Copy link

ghost commented Aug 29, 2017

Yeah they're certainly less accessible

@whyrusleeping
Copy link
Member

👍 To this idea, we have been needing something like this for quite some time.

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

2 participants