From 012a291e28ffde0216a0d3465f6e78c323a3da1d Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 1 May 2024 10:56:27 +0200 Subject: [PATCH] updated nginx state --- states/nginx/templates/types/nextcloud.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/states/nginx/templates/types/nextcloud.j2 b/states/nginx/templates/types/nextcloud.j2 index e548262..d909213 100644 --- a/states/nginx/templates/types/nextcloud.j2 +++ b/states/nginx/templates/types/nextcloud.j2 @@ -33,8 +33,8 @@ 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/public.php?service=webfinger last; - rewrite ^/.well-known/nodeinfo https://$server_name/public.php?service=nodeinfo last; + rewrite ^/.well-known/webfinger https://$server_name/index.php$uri last; + rewrite ^/.well-known/nodeinfo https://$server_name/index.php$uri last; rewrite ^(/core/doc/[^\/]+/)$ $1/index.html; try_files $uri $uri/ index.php; } @@ -58,7 +58,7 @@ server { try_files $1 =404; } - location ~* .(png|ico|gif|jpg|jpeg|css|js|svg)$ { + location ~* .(png|ico|gif|jpg|jpeg|css|mjs|js|svg)$ { expires 2d; }