Update nginx config for Nextcloud

This commit is contained in:
hoellen 2021-02-11 20:37:08 +01:00
parent f93d2f86df
commit e84793be28

View File

@ -21,17 +21,11 @@ server {
access_log off; access_log off;
} }
rewrite ^/.well-known/host-meta /public.php?service=host-meta last; location = /.well-known/carddav { return 301 https://$host/remote.php/dav; }
rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json last; location = /.well-known/caldav { return 301 https://$host/remote.php/dav; }
rewrite ^/.well-known/webfinger /public.php?service=webfinger last;
location = /.well-known/carddav { # Anything else is dynamically handled by Nextcloud
return 301 https://$host/remote.php/dav; location ^~ /.well-known { return 301 https://$host/index.php$uri; }
}
location = /.well-known/caldav {
return 301 https://$host/remote.php/dav;
}
location / { location / {
rewrite ^ /index.php; rewrite ^ /index.php;