From a10150f2f831594aa68a755a3e46bcf19763ba80 Mon Sep 17 00:00:00 2001 From: sigoden Date: Fri, 17 Jun 2022 10:59:19 +0800 Subject: [PATCH] chore: update readme --- README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 23362dc..9fd702b 100644 --- a/README.md +++ b/README.md @@ -70,31 +70,31 @@ OPTIONS: ## Examples -You can run this command to start serving your current working directory on 127.0.0.1:5000 by default. +Serve current working directory, no upload/delete ``` duf ``` -...or specify which folder you want to serve. +Allow upload/delete ``` -duf folder_name +duf -A ``` -Allow all operations such as upload, delete - -```sh -duf --allow-all -``` - -Only allow upload operation +Listen on a specific port ``` -duf --allow-upload +duf -p 80 ``` -Serve a single page application (SPA) +Protect with authentication + +``` +duf -a admin:admin +``` + +For a single page application (SPA) ``` duf --render-spa