From 8446f9bdae5be2810ff9c34351e68eef235656e5 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Tue, 20 May 2025 18:06:26 +0200 Subject: [PATCH] docs: add nginx note about copy/move --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 197df34..5f17184 100644 --- a/README.md +++ b/README.md @@ -193,6 +193,14 @@ location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host; proxy_redirect off; + + # Ensure COPY and MOVE commands work. Change https://example.com to the + # correct address where the WebDAV server will be deployed at. + set $dest $http_destination; + if ($http_destination ~ "^https://example.com(?(.+))") { + set $dest /$path; + } + proxy_set_header Destination $dest; } ```