summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-05-29 14:42:50 +0900
committernsfisis <nsfisis@gmail.com>2024-05-29 14:42:50 +0900
commit064dbaaa84d230f1b2d71597891a747d428de989 (patch)
treec271971de3d6d46848711d55fdb2324e98eb3477
parent6b54f395b0b9d29189fdf99cb2e84556c608686f (diff)
downloadnsfisis.dev-064dbaaa84d230f1b2d71597891a747d428de989.tar.gz
nsfisis.dev-064dbaaa84d230f1b2d71597891a747d428de989.tar.zst
nsfisis.dev-064dbaaa84d230f1b2d71597891a747d428de989.zip
fix(blog/nginx): fix content-type of *.mjs
-rw-r--r--vhosts/blog/nginx.conf5
1 files changed, 5 insertions, 0 deletions
diff --git a/vhosts/blog/nginx.conf b/vhosts/blog/nginx.conf
index 32787c78..7cc8bda1 100644
--- a/vhosts/blog/nginx.conf
+++ b/vhosts/blog/nginx.conf
@@ -9,6 +9,11 @@ server {
types { }
default_type "application/atom+xml; charset=utf-8";
}
+
+ location ~* \.mjs$ {
+ types { }
+ default_type "application/javascript; charset=utf-8";
+ }
}
error_page 404 /404.html;