From 98038309ef488b5304e99b6966522189feed9851 Mon Sep 17 00:00:00 2001 From: Alex Zamponi <562324+alexz707@users.noreply.github.com> Date: Fri, 23 Aug 2024 09:13:22 +0200 Subject: [PATCH 1/2] add studio url, csv and json extension --- .docker/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.docker/nginx.conf b/.docker/nginx.conf index 51fc6f71..8e554c7e 100644 --- a/.docker/nginx.conf +++ b/.docker/nginx.conf @@ -102,7 +102,7 @@ server { # Assets # Still use a whitelist approach to prevent each and every missing asset to go through the PHP Engine. - location ~* ^(?!/admin|/asset/webdav)(.+?)\.((?:css|js)(?:\.map)?|jpe?g|gif|png|svgz?|eps|exe|gz|zip|mp\d|m4a|ogg|ogv|webp|webm|pdf|docx?|xlsx?|pptx?)$ { + location ~* ^(?!/admin|/asset/webdav|/studio/api)(.+?)\.((?:css|js)(?:\.map)?|jpe?g|gif|png|svgz?|eps|exe|gz|json|zip|mp\d|m4a|ogg|ogv|webp|webm|pdf|docx?|xlsx?|pptx?)$ { try_files /var/assets$uri $uri =404; expires 2w; access_log off; From 122750dfc95d843be4b25bef86d4b60ab1a5de0e Mon Sep 17 00:00:00 2001 From: Alex Zamponi <562324+alexz707@users.noreply.github.com> Date: Fri, 23 Aug 2024 09:14:33 +0200 Subject: [PATCH 2/2] add studio url, csv and json extension --- .docker/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.docker/nginx.conf b/.docker/nginx.conf index 8e554c7e..c478b961 100644 --- a/.docker/nginx.conf +++ b/.docker/nginx.conf @@ -102,7 +102,7 @@ server { # Assets # Still use a whitelist approach to prevent each and every missing asset to go through the PHP Engine. - location ~* ^(?!/admin|/asset/webdav|/studio/api)(.+?)\.((?:css|js)(?:\.map)?|jpe?g|gif|png|svgz?|eps|exe|gz|json|zip|mp\d|m4a|ogg|ogv|webp|webm|pdf|docx?|xlsx?|pptx?)$ { + location ~* ^(?!/admin|/asset/webdav|/studio/api)(.+?)\.((?:css|js)(?:\.map)?|jpe?g|gif|png|svgz?|eps|exe|gz|json|zip|mp\d|m4a|ogg|ogv|webp|webm|pdf|csv|docx?|xlsx?|pptx?)$ { try_files /var/assets$uri $uri =404; expires 2w; access_log off;