diff --git a/Dockerfile b/Dockerfile index d592bce..9203a74 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,7 @@ COPY nginx.conf /etc/nginx/conf.d/default.conf # ./mongo-ops/site/ COPY ./_index /usr/share/nginx/html/ COPY ./mongo-ops/site /usr/share/nginx/html/mongo-ops/ +COPY ./blog-api/site /usr/share/nginx/html/api/blog/ # Expose HTTP port EXPOSE 80 diff --git a/nginx.conf b/nginx.conf index dcfe8cd..5ad25cf 100644 --- a/nginx.conf +++ b/nginx.conf @@ -14,6 +14,12 @@ server { index index.html; } + # Explicit location for /mongo-ops/ + location /api/blog/ { + root /usr/share/nginx/html; + index index.html; + } + # Optional: serve static assets (CSS, JS, images) location / { try_files $uri $uri/ /index.html;