diff --git a/states/nginx/templates/types/nextcloud.j2 b/states/nginx/templates/types/nextcloud.j2 index 7a47ad1..e43d597 100644 --- a/states/nginx/templates/types/nextcloud.j2 +++ b/states/nginx/templates/types/nextcloud.j2 @@ -33,8 +33,9 @@ server { 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/index.php$uri last; + rewrite ^/.well-known/webfinger https://$server_name/index.php$uri permanent; rewrite ^/.well-known/nodeinfo https://$server_name/index.php$uri last; + rewrite ^/ocm-provider https://$server_name/index.php$uri last; rewrite ^(/core/doc/[^\/]+/)$ $1/index.html; try_files $uri $uri/ index.php; }