From 2c47e40dd4fe1606da167d16993245bdb447fc92 Mon Sep 17 00:00:00 2001 From: Vishesh 'ironeagle' Bangotra Date: Thu, 20 Nov 2025 22:23:03 +0530 Subject: [PATCH] Dockerfile and nginx.conf changes for tutorials --- Dockerfile | 1 + nginx.conf | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/Dockerfile b/Dockerfile index 5a47e47..c8507ef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,6 +13,7 @@ COPY nginx.conf /etc/nginx/conf.d/default.conf 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/ +COPY ./tutorials/media-manager/site /usr/share/nginx/html/tutorials/media-manager # Expose HTTP port EXPOSE 80 diff --git a/nginx.conf b/nginx.conf index 27ba7e2..048080e 100644 --- a/nginx.conf +++ b/nginx.conf @@ -20,6 +20,12 @@ server { index index.html; } + # Explicit location for /tutorials/ + location /tutorials/ { + root /usr/share/nginx/html; + index index.html; + } + # Optional: serve static assets (CSS, JS, images) location / { try_files $uri $uri/ /index.html;