From: sigoden Date: Fri, 17 Jun 2022 02:59:19 +0000 (+0800) Subject: chore: update readme X-Git-Url: https://git.ozva.co.uk/?a=commitdiff_plain;h=a10150f2f831594aa68a755a3e46bcf19763ba80;p=ozva-cloud chore: update readme --- 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 +Listen on a specific port -```sh -duf --allow-all +``` +duf -p 80 ``` -Only allow upload operation +Protect with authentication ``` -duf --allow-upload +duf -a admin:admin ``` -Serve a single page application (SPA) +For a single page application (SPA) ``` duf --render-spa