From c87504848947efb5307be896b8affe76eb631557 Mon Sep 17 00:00:00 2001 From: Erriez Date: Mon, 15 Feb 2021 20:04:04 +0100 Subject: [PATCH] Add Nextcloud CardDav and CalDav for subdomain proxy --- nextcloud.subdomain.conf.sample | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nextcloud.subdomain.conf.sample b/nextcloud.subdomain.conf.sample index 8ddbb4d..1517dd0 100644 --- a/nextcloud.subdomain.conf.sample +++ b/nextcloud.subdomain.conf.sample @@ -31,6 +31,14 @@ server { set $upstream_proto https; proxy_pass $upstream_proto://$upstream_app:$upstream_port; + location /.well-known/carddav { + return 301 $upstream_proto://$upstream_app/remote.php/dav; + } + + location /.well-known/caldav { + return 301 $upstream_proto://$upstream_app/remote.php/dav; + } + proxy_max_temp_file_size 2048m; } }