forked from sotsera/sotsera.blazor.toaster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
32 lines (27 loc) · 1.41 KB
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
events { }
http {
include mime.types;
types {
application/wasm wasm;
}
server {
listen 80;
location / {
root /usr/share/nginx/html;
try_files $uri $uri/ /index.html =404;
location ~* \.(dll|woff)$ {
add_header Cache-Control "no-transform";
}
}
# gzip
gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_types application/atom+xml application/javascript application/json application/octet-stream application/vnd.ms-fontobject application/wasm application/x-font-opentype application/x-font-truetype application/x-font-ttf application/xhtml+xml application/x-javascript application/xml application/xml+rss font/eot font/opentype font/otf font/woff image/png image/svg+xml image/vnd.microsoft.icon image/x-icon image/x-win-bitmap text/css text/javascript text/plain text/xml;
# brotli
#brotli on;
#brotli_comp_level 6;
#brotli_types application/atom+xml application/javascript application/json application/octet-stream application/vnd.ms-fontobject application/wasm application/x-font-opentype application/x-font-truetype application/x-font-ttf application/xhtml+xml application/x-javascript application/xml application/xml+rss font/eot font/opentype font/otf font/woff image/png image/svg+xml image/vnd.microsoft.icon image/x-icon image/x-win-bitmap text/css text/javascript text/plain text/xml;
}
}