diff --git a/states/nginx/templates/types/nextcloud.j2 b/states/nginx/templates/types/nextcloud.j2 index 6fa2fb4..e548262 100644 --- a/states/nginx/templates/types/nextcloud.j2 +++ b/states/nginx/templates/types/nextcloud.j2 @@ -28,6 +28,9 @@ server { rewrite ^/caldav(.*)$ https://$server_name/remote.php/dav$1 redirect; rewrite ^/carddav(.*)$ https://$server_name/remote.php/dav$1 redirect; rewrite ^/webdav(.*)$ https://$server_name/remote.php/webdav$1 redirect; + rewrite ^/.well-known/caldav(.*)$ https://$server_name/remote.php/dav$1 redirect; + rewrite ^/.well-known/carddav(.*)$ https://$server_name/remote.php/dav$1 redirect; + rewrite ^/.well-known/webdav(.*)$ https://$server_name/remote.php/webdav$1 redirect; rewrite ^/.well-known/host-meta https://$server_name/public.php?service=host-meta last; rewrite ^/.well-known/host-meta.json https://$server_name/public.php?service=host-meta-json last; rewrite ^/.well-known/webfinger https://$server_name/public.php?service=webfinger last;