Updates for NextCloud security checks

This commit is contained in:
Brad Holland 2022-05-10 00:38:55 -04:00 committed by GitHub
commit ebc2d55a01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,4 +33,21 @@ server {
proxy_max_temp_file_size 2048m; proxy_max_temp_file_size 2048m;
} }
# The rules in this block are an adaptation of the rules
# in the Nextcloud `.htaccess` that concern `/.well-known`.
location /.well-known/carddav {
return 301 $scheme://$host/remote.php/dav;
}
# The rules in this block are an adaptation of the rules
# in the Nextcloud `.htaccess` that concern `/.well-known`.
location /.well-known/caldav {
return 301 $scheme://$host/remote.php/dav;
}
# Let Nextcloud's API for `/.well-known` URIs handle all other
# requests by passing them to the front-end controller.
rewrite ^/.well-known/webfinger /index.php$uri redirect;
rewrite ^/.well-known/nodeinfo /index.php$uri redirect;
} }