fix: use DUFS_CONFIG to specify the config file path (#286)
This commit is contained in:
parent
0d74fa3ec5
commit
a476c15a09
2 changed files with 2 additions and 1 deletions
|
@ -333,6 +333,7 @@ All options can be set using environment variables prefixed with `DUFS_`.
|
||||||
|
|
||||||
```
|
```
|
||||||
[serve-path] DUFS_SERVE_PATH=/dir
|
[serve-path] DUFS_SERVE_PATH=/dir
|
||||||
|
--config <path> DUFS_CONFIG=config.yaml
|
||||||
-b, --bind <addrs> DUFS_BIND=0.0.0.0
|
-b, --bind <addrs> DUFS_BIND=0.0.0.0
|
||||||
-p, --port <port> DUFS_PORT=5000
|
-p, --port <port> DUFS_PORT=5000
|
||||||
--path-prefix <path> DUFS_PATH_PREFIX=/path
|
--path-prefix <path> DUFS_PATH_PREFIX=/path
|
||||||
|
|
|
@ -29,7 +29,7 @@ pub fn build_cli() -> Command {
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new("config")
|
Arg::new("config")
|
||||||
.env("DUFS_SERVE_PATH")
|
.env("DUFS_CONFIG")
|
||||||
.hide_env(true)
|
.hide_env(true)
|
||||||
.short('c')
|
.short('c')
|
||||||
.long("config")
|
.long("config")
|
||||||
|
|
Loading…
Reference in a new issue