From 1ab11266d77e20e4be06d2db90022c2e0fc5d25d Mon Sep 17 00:00:00 2001 From: Harry Tsang <58384315+h9419@users.noreply.github.com> Date: Sun, 28 Apr 2024 09:26:55 +0800 Subject: [PATCH] Nextcloud: update WebDAV URL redirects for subfolder --- nextcloud.subfolder.conf.sample | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nextcloud.subfolder.conf.sample b/nextcloud.subfolder.conf.sample index f206d06..e97ea5f 100644 --- a/nextcloud.subfolder.conf.sample +++ b/nextcloud.subfolder.conf.sample @@ -1,4 +1,4 @@ -## Version 2024/04/25 +## Version 2024/04/28 # make sure that your nextcloud container is named nextcloud # make sure that nextcloud is set to work with the base url /nextcloud/ # Assuming this container is called "swag", edit your nextcloud container's config @@ -48,4 +48,8 @@ location ^~ /nextcloud/ { # Disable proxy buffering proxy_buffering off; + + # Nextcloud's redirect for these two `/.well-known` URIs in version 29 did not consider overwritewebroot + location = /nextcloud/.well-known/carddav { return 301 /nextcloud/remote.php/dav/; } + location = /nextcloud/.well-known/caldav { return 301 /nextcloud/remote.php/dav/; } }