Add proper content type handling for Markdown files in Nginx configuration
This commit is contained in:
@@ -59,6 +59,13 @@ http {
|
|||||||
add_header Service-Worker-Allowed "/";
|
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
|
# Serve static files
|
||||||
location / {
|
location / {
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
|
|||||||
Reference in New Issue
Block a user