Add proper content type handling for Markdown files in Nginx configuration

This commit is contained in:
MayaChat
2025-11-24 14:31:50 -05:00
parent e9475a0b0e
commit 3e82d9d389

View File

@@ -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;