Add some doumentation.

This commit is contained in:
Christoph 2023-04-05 17:08:51 +02:00
parent 3c226fe56b
commit 85ac4a80d6

View File

@ -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;
}