diff --git a/default.conf b/default.conf index 593ae86..516f14f 100644 --- a/default.conf +++ b/default.conf @@ -12,8 +12,10 @@ server { root /usr/share/nginx/html; } - location /configs/config.json { - root /usr/share/nginx/html; + location /configs/ { + index config.json; + alias /usr/share/nginx/html/configs/; add_header Cache-Control "no-store, no-cache"; + add_header Content-Type application/json; } }