mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-08-22 06:13:49 -07:00
Update nextcloud.subdomain.conf.sample
Addresses error message for carddav and caldav in Nextcloud 21
This commit is contained in:
parent
d1ec5404a4
commit
d40790c183
1 changed files with 12 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
## Version 2020/12/09
|
## Version 2021/02/23
|
||||||
# make sure that your dns has a cname set for nextcloud
|
# make sure that your dns has a cname set for nextcloud
|
||||||
# assuming this container is called "swag", edit your nextcloud container's config
|
# assuming this container is called "swag", edit your nextcloud container's config
|
||||||
# located at /config/www/nextcloud/config/config.php and add the following lines before the ");":
|
# located at /config/www/nextcloud/config/config.php and add the following lines before the ");":
|
||||||
|
@ -33,4 +33,15 @@ server {
|
||||||
|
|
||||||
proxy_max_temp_file_size 2048m;
|
proxy_max_temp_file_size 2048m;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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