From 85ac4a80d62c016221aea189b5e0cde268900567 Mon Sep 17 00:00:00 2001 From: Christoph Date: Wed, 5 Apr 2023 17:08:51 +0200 Subject: [PATCH] Add some doumentation. --- FILES/Nginx/full-qualified-site-name.conf | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/FILES/Nginx/full-qualified-site-name.conf b/FILES/Nginx/full-qualified-site-name.conf index df73724..9ffa80b 100644 --- a/FILES/Nginx/full-qualified-site-name.conf +++ b/FILES/Nginx/full-qualified-site-name.conf @@ -185,6 +185,25 @@ server { access_log off; # Optional: Don't log access to assets } + # Service Discovery + # + # !! we already configured this service inside 'location ~ \.php(?:\$|/) {' !! + # + # The redirects for CalDAV or CardDAV does not work if Nextcloud is running behind a + # reverse proxy. The recommended solution is that your reverse proxy does the redirects + # + #rewrite ^/\.well-known/carddav https://\$server_name/remote.php/dav/ redirect; + #rewrite ^/\.well-known/caldav https://\$server_name/remote.php/dav/ redirect; + # + # or alternativ + # + #location /.well-known/carddav { + # return 301 \$scheme://\$host/remote.php/dav; + #} + #location /.well-known/caldav { + # return 301 \$scheme://\$host/remote.php/dav; + #} + location / { try_files $uri $uri/ /index.php$request_uri; }