Commit 6e15fd7c by zhangxingmin

push

parent 0b469171
......@@ -2,6 +2,17 @@ server {
listen 6688;
server_name 139.224.145.34;
# 为 .mjs 文件设置正确的 MIME 类型(解决 PDF.js worker 加载失败)
location ~ \.mjs$ {
root /usr/share/nginx/html;
add_header Content-Type application/javascript;
# 如果需要支持跨域(可选,与你的其他配置保持一致)
add_header 'Access-Control-Allow-Origin' '*';
# 缓存控制(可选)
expires 1y;
add_header Cache-Control "public, immutable";
}
# 处理前端静态资源(Vue应用)
location / {
root /usr/share/nginx/html;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment