From 3586b1138c505d1c3d2b54b9663c0d901dc59a05 Mon Sep 17 00:00:00 2001 From: DeNNiiInc Date: Mon, 29 Dec 2025 15:47:20 +1100 Subject: [PATCH] CRITICAL FIX: Add Nginx location block for /reports/ to serve JSON files --- deploy-server.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deploy-server.sh b/deploy-server.sh index cfa201f..7598485 100644 --- a/deploy-server.sh +++ b/deploy-server.sh @@ -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;