diff --git a/core/tools/nginx/nginx.conf b/core/tools/nginx/nginx.conf index b4a0c10da..46f30aff4 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,13 @@ http { autoindex_format json; } + location /assets/ { + root /home/pi/frontend; + try_files $uri $uri/; + autoindex on; + add_header Cache-Control "public, max-age=604800"; + } + location ~ ^/upload(/.*)$ { client_max_body_size 100M; alias /usr/blueos$1;