diff --git a/nginx.conf b/nginx.conf index 6117ac5..cd14e5c 100644 --- a/nginx.conf +++ b/nginx.conf @@ -6,6 +6,12 @@ server { index index.html; include /etc/nginx/mime.types; + # Vite, pdf.js worker'ını .mjs uzantısıyla üretiyor; Debian'ın mime.types + # dosyasında mjs yok → application/octet-stream sunuluyordu ve tarayıcı + # modül worker'ını yüklemeyi reddediyordu ("Setting up fake worker failed"). + types { + application/javascript mjs; + } # Canlı veri backend'i (aynı container'da Node, port 3001) location /api/ {