mirror of
https://github.com/DeNNiiInc/Web-Page-Performance-Test.git
synced 2026-04-17 11:55:59 +00:00
CRITICAL FIX: Add Nginx location block for /reports/ to serve JSON files
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user