From 3e82d9d3896befb255a4527329b98fd5a07b6d7b Mon Sep 17 00:00:00 2001 From: MayaChat Date: Mon, 24 Nov 2025 14:31:50 -0500 Subject: [PATCH] Add proper content type handling for Markdown files in Nginx configuration --- nginx.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nginx.conf b/nginx.conf index d3b1ae9..390631d 100644 --- a/nginx.conf +++ b/nginx.conf @@ -59,6 +59,13 @@ http { add_header Service-Worker-Allowed "/"; } + # Markdown files with proper content type + location ~ \.md$ { + root /usr/share/nginx/html; + add_header Content-Type text/markdown; + add_header Cache-Control "no-cache"; + } + # Serve static files location / { root /usr/share/nginx/html;