https://github.com/lostintime/nginx-webdav
Simple Nginx WebDAV host configuration for attached docker volume
https://github.com/lostintime/nginx-webdav
nginx-webdav webdav webdav-server
Last synced: 6 months ago
JSON representation
Simple Nginx WebDAV host configuration for attached docker volume
- Host: GitHub
- URL: https://github.com/lostintime/nginx-webdav
- Owner: lostintime
- Created: 2018-04-02T17:27:10.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-02T17:34:39.000Z (about 8 years ago)
- Last Synced: 2025-01-21T17:14:14.886Z (over 1 year ago)
- Topics: nginx-webdav, webdav, webdav-server
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Nginx WebDAV
============
Simple Nginx WebDAV host configuration for attached docker volume.
## Usage
Create a volume:
```
docker volume create --driver "local" davtest
```
Start nginx webdav server:
```
docker run -p 127.0.0.1:8080:80 -v davtest:/data --name dav lostintime/nginx-webdav:1.12.2-alpine
```
Where `davtest` is the name of
### Create/Update
```
curl -X PUT \
http://127.0.0.1:8080/hello.json \
-H 'Content-Type: application/json' \
-d '{
"message": "Hello world!"
}'
```
### Get
```
curl -X GET http://127.0.0.1:8080/hello.json
```
### Copy
```
curl -X COPY http://127.0.0.1:8080/hello.json \
-H 'Destination: /hello2.json'
```
### Move
```
curl -X MOVE http://127.0.0.1:8080/hello2.json \
-H 'Destination: /hello3.json'
```
### Delete
```
curl -X DELETE http://127.0.0.1:8080/hello3.json
```