Skip to content

Commit 9661451

Browse files
authored
add studio url, csv and json extension (#597)
* add studio url, csv and json extension
1 parent 2e2c051 commit 9661451

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.docker/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ server {
102102

103103
# Assets
104104
# Still use a whitelist approach to prevent each and every missing asset to go through the PHP Engine.
105-
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?)$ {
105+
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?)$ {
106106
try_files /var/assets$uri $uri =404;
107107
expires 2w;
108108
access_log off;

0 commit comments

Comments
 (0)