mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-09 00:59:02 +03:00
chore: update readme
This commit is contained in:
24
README.md
24
README.md
@@ -70,31 +70,31 @@ OPTIONS:
|
|||||||
|
|
||||||
## Examples
|
## 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
|
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
|
|
||||||
```
|
|
||||||
|
|
||||||
Only allow upload operation
|
|
||||||
|
|
||||||
```
|
```
|
||||||
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
|
duf --render-spa
|
||||||
|
|||||||
Reference in New Issue
Block a user