diff --git a/core/tools/nginx/nginx.conf b/core/tools/nginx/nginx.conf index b4a0c10da8..191c1b74c9 100644 --- a/core/tools/nginx/nginx.conf +++ b/core/tools/nginx/nginx.conf @@ -133,6 +133,7 @@ http { location ^~ /logviewer { # ^~ makes this a higher priority than locations with regex + expires 10d; root /home/pi/tools; } @@ -217,6 +218,14 @@ http { autoindex_format json; } + location /assets/ { + root /home/pi/frontend/assets; + autoindex on; + # allow frontend to see files using json + autoindex_format json; + expires 5d; # built files have a hash, so we shouldn't have issues with old cache + } + location ~ ^/upload(/.*)$ { client_max_body_size 100M; alias /usr/blueos$1;