mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-08-22 06:13:49 -07:00
Update nextcloud.subdomain.conf.sample
Update for nextcloud 21 Security safety recommendation for .well-known https://docs.nextcloud.com/server/21/admin_manual/installation/nginx.html
This commit is contained in:
parent
d1ec5404a4
commit
f06a31b8d4
1 changed files with 16 additions and 0 deletions
|
@ -33,4 +33,20 @@ server {
|
||||||
|
|
||||||
proxy_max_temp_file_size 2048m;
|
proxy_max_temp_file_size 2048m;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location = /robots.txt {
|
||||||
|
allow all;
|
||||||
|
log_not_found off;
|
||||||
|
access_log off;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ^~ /.well-known {
|
||||||
|
# The following 6 rules are borrowed from `.htaccess`
|
||||||
|
location = /.well-known/carddav { return 301 /remote.php/dav/; }
|
||||||
|
location = /.well-known/caldav { return 301 /remote.php/dav/; }
|
||||||
|
# Anything else is dynamically handled by Nextcloud
|
||||||
|
location ^~ /.well-known { return 301 /index.php$uri; }
|
||||||
|
|
||||||
|
try_files $uri $uri/ =404;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue