@chat21/chat21-web-widget 5.1.32-rc2 → 5.1.32-rc3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/nginx.conf +22 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/nginx.conf
CHANGED
|
@@ -5,18 +5,38 @@ events {
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
http {
|
|
8
|
+
include /etc/nginx/mime.types;
|
|
9
|
+
default_type application/octet-stream;
|
|
10
|
+
|
|
8
11
|
server {
|
|
9
12
|
listen 80;
|
|
10
13
|
server_name localhost;
|
|
11
14
|
|
|
12
15
|
root /usr/share/nginx/html;
|
|
13
16
|
index index.html index.htm;
|
|
14
|
-
include /etc/nginx/mime.types;
|
|
15
17
|
|
|
16
18
|
gzip on;
|
|
17
19
|
gzip_min_length 1000;
|
|
18
20
|
gzip_proxied expired no-cache no-store private auth;
|
|
19
|
-
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
|
|
21
|
+
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript application/wasm;
|
|
22
|
+
|
|
23
|
+
# ONNX Runtime (.mjs), WASM e modelli VAD: il browser rifiuta moduli ES con Content-Type: text/plain
|
|
24
|
+
location ~* \.mjs$ {
|
|
25
|
+
root /usr/share/nginx/html;
|
|
26
|
+
default_type application/javascript;
|
|
27
|
+
charset utf-8;
|
|
28
|
+
add_header Cache-Control "public, max-age=31536000, immutable";
|
|
29
|
+
}
|
|
30
|
+
location ~* \.wasm$ {
|
|
31
|
+
root /usr/share/nginx/html;
|
|
32
|
+
default_type application/wasm;
|
|
33
|
+
add_header Cache-Control "public, max-age=31536000, immutable";
|
|
34
|
+
}
|
|
35
|
+
location ~* \.onnx$ {
|
|
36
|
+
root /usr/share/nginx/html;
|
|
37
|
+
default_type application/octet-stream;
|
|
38
|
+
add_header Cache-Control "public, max-age=31536000, immutable";
|
|
39
|
+
}
|
|
20
40
|
|
|
21
41
|
location / {
|
|
22
42
|
try_files $uri $uri/ /index.html;
|