From aed776ac49cb44705463d9e43c070dc56adaaae3 Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Mon, 10 Jun 2024 00:38:45 +0200 Subject: Remove explicit dependency on http We now use the one supplied by actix-web. --- src/args.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/args.rs') diff --git a/src/args.rs b/src/args.rs index 95c8bff..20be079 100644 --- a/src/args.rs +++ b/src/args.rs @@ -1,8 +1,8 @@ use std::net::IpAddr; use std::path::PathBuf; +use actix_web::http::header::{HeaderMap, HeaderName, HeaderValue}; use clap::{Parser, ValueEnum, ValueHint}; -use http::header::{HeaderMap, HeaderName, HeaderValue}; use crate::auth; use crate::listing::{SortingMethod, SortingOrder}; -- cgit v1.2.3 From 873d485053f296b928f7bdd29a38e206a64222cb Mon Sep 17 00:00:00 2001 From: Zakhary Kaplan Date: Wed, 26 Jun 2024 18:05:00 -0400 Subject: Fix typos in CLI --- src/args.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/args.rs') diff --git a/src/args.rs b/src/args.rs index 20be079..dd09f65 100644 --- a/src/args.rs +++ b/src/args.rs @@ -162,7 +162,7 @@ pub struct CliArgs { /// The provided path is not a physical file system path. Instead, it's relative to the serve /// dir. For instance, if the serve dir is '/home/hello', set this to '/upload' to allow /// uploading to '/home/hello/upload'. - /// When specified via environment variable, a path always neesd to the specified. + /// When specified via environment variable, a path always needs to be specified. #[arg(short = 'u', long = "upload-files", value_hint = ValueHint::FilePath, num_args(0..=1), value_delimiter(','), env = "MINISERVE_ALLOWED_UPLOAD_DIR")] pub allowed_upload_dir: Option>, -- cgit v1.2.3 From bc6e1f9faab1d22b4f3eee2892dc5e21bac7c62c Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Fri, 11 Oct 2024 05:21:41 +0200 Subject: Prefix OVERWRITE_FILES env var Fixes #1457. --- src/args.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/args.rs') diff --git a/src/args.rs b/src/args.rs index dd09f65..ce6e4e2 100644 --- a/src/args.rs +++ b/src/args.rs @@ -195,7 +195,7 @@ pub struct CliArgs { pub media_type_raw: Option, /// Enable overriding existing files during file upload - #[arg(short = 'o', long = "overwrite-files", env = "OVERWRITE_FILES")] + #[arg(short = 'o', long = "overwrite-files", env = "MINISERVE_OVERWRITE_FILES")] pub overwrite_files: bool, /// Enable uncompressed tar archive generation -- cgit v1.2.3 From c74f03e2914fe42f7e243011d2285a534435122e Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Fri, 11 Oct 2024 21:46:07 +0200 Subject: Fix formatting --- src/args.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/args.rs') diff --git a/src/args.rs b/src/args.rs index ce6e4e2..9ac6772 100644 --- a/src/args.rs +++ b/src/args.rs @@ -195,7 +195,11 @@ pub struct CliArgs { pub media_type_raw: Option, /// Enable overriding existing files during file upload - #[arg(short = 'o', long = "overwrite-files", env = "MINISERVE_OVERWRITE_FILES")] + #[arg( + short = 'o', + long = "overwrite-files", + env = "MINISERVE_OVERWRITE_FILES" + )] pub overwrite_files: bool, /// Enable uncompressed tar archive generation -- cgit v1.2.3 From 317bd6a5d42a83c9c5e874788282a6e76f638211 Mon Sep 17 00:00:00 2001 From: Lukas Stabe Date: Thu, 6 Feb 2025 00:03:05 +0100 Subject: add read-only webdav support --- src/args.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/args.rs') diff --git a/src/args.rs b/src/args.rs index 9ac6772..922e78b 100644 --- a/src/args.rs +++ b/src/args.rs @@ -309,6 +309,12 @@ pub struct CliArgs { /// and return an error instead. #[arg(short = 'I', long, env = "MINISERVE_DISABLE_INDEXING")] pub disable_indexing: bool, + + /// Enable read-only WebDAV support (PROPFIND requests) + /// + /// Currently incompatible with -P|--no-symlinks (see https://github.com/messense/dav-server-rs/issues/37) + #[arg(long, env = "MINISERVE_ENABLE_WEBDAV", conflicts_with = "no_symlinks")] + pub enable_webdav: bool, } /// Checks whether an interface is valid, i.e. it can be parsed into an IP address -- cgit v1.2.3