mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-08-21 22:03:39 -07:00
Updates for NextCloud security checks
This commit is contained in:
parent
143b7fb742
commit
ebc2d55a01
1 changed files with 17 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue