-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
31 lines (26 loc) · 1005 Bytes
/
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
server {
listen 7258;
http2 on;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
location ~* \.(html|css|png|jpg|jpeg|gif|ico|svg|mp3|ttf)$ {
expires 30d;
add_header Cache-Control "public, no-transform";
}
location ~* \.(js)$ {
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0";
expires -1;
}
location / {
try_files $uri $uri/ /index.html;
expires 15d;
add_header Cache-Control "public, no-transform, max-age=2592000";
}
gzip on;
gzip_vary on;
gzip_min_length 10240;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml application/json image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype font/woff font/woff2 audio/mpeg audio/ogg application/octet-stream;
gzip_disable "MSIE [1-6]\.";
}