Browse Source

chore: update readme

pull/51/head
sigoden 3 years ago
parent
commit
a10150f2f8
  1. 18
      README.md

18
README.md

@ -70,31 +70,31 @@ OPTIONS: @@ -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

Loading…
Cancel
Save