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

Use environment variables for configuration #160

Closed
akelge opened this issue Dec 23, 2022 · 0 comments · Fixed by #170
Closed

Use environment variables for configuration #160

akelge opened this issue Dec 23, 2022 · 0 comments · Fixed by #170

Comments

@akelge
Copy link

akelge commented Dec 23, 2022

Specific Demand

If I wish to run it in Docker or Kubernetes, it would be nice to use env vars or a config file to configure the features

Implement Suggestion

Parse env vars with names like DUFS_FEATURE_WITH_DASH_REPLACED_WITH_UNDERSCORES like
DUFS_ALLOW_ALL=true or DUFS_AUTH_METHOD=digest
and possibly support also a config file, with the cli flags in lowercase and with dash replaced by underscores, YAML or INI format.
In this case it would be nice to have a CLI flag like --config <configfile> and an env var like DUFS_CONFIGFILE=<configfile> and, maybe, a default path like ./config.yaml

MuXiu1997 added a commit to MuXiu1997/dufs that referenced this issue Jan 30, 2023
sigoden pushed a commit that referenced this issue Feb 19, 2023
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

Successfully merging a pull request may close this issue.

1 participant