[GH-ISSUE #160] Use environment variables for configuration #76

Closed
opened 2026-04-08 16:50:12 +03:00 by zhus · 0 comments
Owner

Originally created by @akelge on GitHub (Dec 23, 2022).
Original GitHub issue: https://github.com/sigoden/dufs/issues/160

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

Originally created by @akelge on GitHub (Dec 23, 2022). Original GitHub issue: https://github.com/sigoden/dufs/issues/160 ## 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`
zhus closed this issue 2026-04-08 16:50:12 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#76