Compare commits

..

2 Commits

Author SHA1 Message Date
sigoden
743db47f90 chore: release v0.37.1 2023-11-08 11:11:36 +08:00
sigoden
a476c15a09 fix: use DUFS_CONFIG to specify the config file path (#286) 2023-11-08 11:10:47 +08:00
5 changed files with 10 additions and 3 deletions

View File

@@ -2,6 +2,12 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
## [0.37.1] - 2023-11-08
### Bug Fixes
- Use DUFS_CONFIG to specify the config file path ([#286](https://github.com/sigoden/dufs/issues/286)
## [0.37.0] - 2023-11-08 ## [0.37.0] - 2023-11-08
### Bug Fixes ### Bug Fixes

2
Cargo.lock generated
View File

@@ -454,7 +454,7 @@ checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10"
[[package]] [[package]]
name = "dufs" name = "dufs"
version = "0.37.0" version = "0.37.1"
dependencies = [ dependencies = [
"alphanumeric-sort", "alphanumeric-sort",
"anyhow", "anyhow",

View File

@@ -1,6 +1,6 @@
[package] [package]
name = "dufs" name = "dufs"
version = "0.37.0" version = "0.37.1"
edition = "2021" edition = "2021"
authors = ["sigoden <sigoden@gmail.com>"] authors = ["sigoden <sigoden@gmail.com>"]
description = "Dufs is a distinctive utility file server" description = "Dufs is a distinctive utility file server"

View File

@@ -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

View File

@@ -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")