add(dufs): add dufs stack

This commit is contained in:
cnphpbb
2025-02-14 17:32:50 +08:00
parent 4ce58efd24
commit 340cd75ac0
3 changed files with 48 additions and 0 deletions

26
dufs/config/config.yaml Normal file
View File

@@ -0,0 +1,26 @@
serve-path: '.'
bind: 0.0.0.0
port: 5000
path-prefix: /dufs
hidden:
- tmp
- '*.log'
- '*.lock'
auth:
- admin:admin@/:rw
- user:pass@/src:rw,/share
- '@/' # According to the YAML spec, quoting is required.
allow-all: false
allow-upload: true
allow-delete: true
allow-search: true
allow-symlink: true
allow-archive: true
enable-cors: true
render-index: true
render-try-index: true
render-spa: true
assets: ./assets/
log-format: '$remote_addr "$request" $status $http_user_agent'
log-file: ./dufs.log
compress: low