|
|
|
@ -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 |
|
|
|
|