feat: support tls

This commit is contained in:
sigoden
2022-06-02 11:06:41 +08:00
parent 97978719b3
commit e2d7f996c7
6 changed files with 307 additions and 108 deletions

View File

@@ -16,6 +16,7 @@ Duf is a fully functional file server.
- Delete files
- Basic authentication
- Upload zip file then unzip
- Serve through https
- Easy to use with curl
## Install
@@ -58,7 +59,6 @@ duf --allow-all
duf -A
```
Only allow upload operation
```
@@ -71,6 +71,12 @@ Serve a single page application (SPA)
duf --render-spa
```
Serve https
```
duf --tls-cert my.crt --tls-key my.key
```
### Api
Download a file