From e4d4158f82625f0db8bc58023a0f77bbe0bc0c96 Mon Sep 17 00:00:00 2001 From: Vishesh 'ironeagle' Bangotra Date: Wed, 5 Nov 2025 21:10:23 +0530 Subject: [PATCH] Dockerfile and nginx.conf for api/blog --- Dockerfile | 1 + nginx.conf | 6 ++++++ 2 files changed, 7 insertions(+) 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;