简单的webdav
docker run -d -p 30001:30001 -v /hostpath:/media -v /hostpath/config.yaml:/config.yaml 601096721/webdav
config.yaml
address: 0.0.0.0
port: 30001 # webdav listening port
auth: true
tls: false
cert: cert.pem
key: key.pem
prefix: /
# Default user settings (will be merged)
scope: .
modify: true
rules: []
# CORS configuration
cors:
enabled: true
credentials: true
allowed_headers:
- Authorization
- Origin
- X-Requested-With
- Content-Type
- Accept
- DNT
- X-CustomHeader
- Keep-Alive,User-Agent
- X-Requested-With
- If-Modified-Since,Cache-Control
- Content-Range
- Range
- Depth
- Content-Length
allowed_hosts:
- app://obsidian.md
allowed_methods:
- GET
- HEAD
- POST
- PUT
- OPTIONS
- MOVE
- DELETE
- COPY
- LOCK
- UNLOCK
- PROPFIND
- MKCOL
exposed_headers:
- Content-Length
- Content-Range
users:
- username: note
password: wy2BbpSmKwwWtG
scope: /media
把配置文件挂载出来可以修改挂载点、用户密码和其他的配置
Content type
Image
Digest
Size
55.5 MB
Last updated
almost 5 years ago
docker pull 601096721/webdav