mirror of
https://github.com/DeNNiiInc/Web-Page-Performance-Test.git
synced 2026-04-17 20:05:58 +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};
|
root ${REMOTE_PATH};
|
||||||
index index.html;
|
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
|
# Serve static files directly
|
||||||
location / {
|
location / {
|
||||||
try_files \$uri \$uri/ /index.html;
|
try_files \$uri \$uri/ /index.html;
|
||||||
|
|||||||
Reference in New Issue
Block a user