From bdb4da6a7298164e49e9c91539f172bf4c589330 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=93=B0=E1=95=B5=E1=95=B5=E1=93=8D?= <52239579+ippocratis@users.noreply.github.com> Date: Wed, 18 Jan 2023 13:05:10 +0200 Subject: [PATCH] Create nginx-webdav.md its a nginx fileserver using weddav module serving as a simple personal cloud storage --- apps/cloud/nginx-webdav.md | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 apps/cloud/nginx-webdav.md diff --git a/apps/cloud/nginx-webdav.md b/apps/cloud/nginx-webdav.md new file mode 100644 index 0000000..6107908 --- /dev/null +++ b/apps/cloud/nginx-webdav.md @@ -0,0 +1,42 @@ +## docker-nginx-webdav-nononsense + +aims to be a Docker image that enables a no-nonsense WebDAV system on the latest available nginx, stable and mainline. Serves a file server + +
+ +- [Github repo](https://github.com/dgraziotin/docker-nginx-webdav-nononsense/) + +## docker-compose-yml + +```yml +--- +services: + nginxwebdav: + container_name: nginxwebdav + build: + context: . + volumes: + - ./data:/data + - ./config:/config + environment: + - PUID=501 + - PGID=20 + - TZ=Europe/Berlin + - WEBDAV_USERNAME=user + - WEBDAV_PASSWORD=password + - SERVER_NAMES=localhost + - TIMEOUTS_S=1200 # these are seconds + - CLIENT_MAX_BODY_SIZE=120M # must end with M(egabytes) or G(igabytes) + ports: + - 32080:80 +``` + +## Tips & Tricks + +### customise nginx.conf + +Change dav_access user:rw group:rw all:rw to "location" context to custoise client file permissions + +and change dav_ethods to PUT, DELETE, MKCOL, COPY, and MOVE so that clients can erform any action + +alternatively you can create a custom config under /config/custom-cont-init.d/