CRITICAL FIX: Add Nginx location block for /reports/ to serve JSON files

This commit is contained in:
2025-12-29 15:47:20 +11:00
parent 7547aa04e5
commit 3586b1138c

View File

@@ -126,6 +126,13 @@ server {
root ${REMOTE_PATH};
index index.html;
# Serve reports directory files with proper MIME types
location /reports/ {
try_files \$uri =404;
add_header Content-Type application/json;
add_header Access-Control-Allow-Origin *;
}
# Serve static files directly
location / {
try_files \$uri \$uri/ /index.html;