chore: update readme
This commit is contained in:
parent
5b11bb75dd
commit
a10150f2f8
1 changed files with 12 additions and 12 deletions
24
README.md
24
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
|
||||
|
|
Loading…
Reference in a new issue