From c806c4234095e825bd08f7956810d2432d897470 Mon Sep 17 00:00:00 2001 From: Paul Date: Sat, 21 Dec 2024 16:37:48 +0100 Subject: [PATCH] updated nginx state --- states/nginx/templates/types/nextcloud.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }