]> OzVa Git service - ozva-cloud/commitdiff
fix: use DUFS_CONFIG to specify the config file path (#286)
authorsigoden <sigoden@gmail.com>
Wed, 8 Nov 2023 03:10:47 +0000 (11:10 +0800)
committerGitHub <noreply@github.com>
Wed, 8 Nov 2023 03:10:47 +0000 (11:10 +0800)
README.md
src/args.rs

index c2b43b84d052ea881eda04842b5b68faf514f404..b2392177d703ec38f0dc1cc0cd33550d25d53bd9 100644 (file)
--- a/README.md
+++ b/README.md
@@ -333,6 +333,7 @@ All options can be set using environment variables prefixed with `DUFS_`.
 
 ```
   [serve-path]                DUFS_SERVE_PATH=/dir
+      --config <path>         DUFS_CONFIG=config.yaml
   -b, --bind <addrs>          DUFS_BIND=0.0.0.0
   -p, --port <port>           DUFS_PORT=5000
       --path-prefix <path>    DUFS_PATH_PREFIX=/path
index a822d7087f58ca99d3f1d02424a63fdffb965d61..fe2ffb30790dce677f251e815f468b1ed3421d0f 100644 (file)
@@ -29,7 +29,7 @@ pub fn build_cli() -> Command {
         )
         .arg(
             Arg::new("config")
-                .env("DUFS_SERVE_PATH")
+                .env("DUFS_CONFIG")
                                .hide_env(true)
                 .short('c')
                 .long("config")