update nginx.conf
This commit is contained in:
parent
d9d62e9f32
commit
e4455e107b
|
@ -67,3 +67,5 @@ yarn-error.log
|
||||||
.pnp.js
|
.pnp.js
|
||||||
# Yarn Integrity file
|
# Yarn Integrity file
|
||||||
.yarn-integrity
|
.yarn-integrity
|
||||||
|
|
||||||
|
.idea
|
|
@ -42,7 +42,6 @@ http {
|
||||||
|
|
||||||
# Javascript and CSS files
|
# Javascript and CSS files
|
||||||
location ~* \.(?:css|webmanifest|js|woff2|manifest)$ {
|
location ~* \.(?:css|webmanifest|js|woff2|manifest)$ {
|
||||||
try_files $uri =404;
|
|
||||||
expires 1y;
|
expires 1y;
|
||||||
access_log off;
|
access_log off;
|
||||||
add_header Cache-Control "public";
|
add_header Cache-Control "public";
|
||||||
|
@ -53,10 +52,5 @@ http {
|
||||||
# as directory, then fall back to redirecting to index.html
|
# as directory, then fall back to redirecting to index.html
|
||||||
try_files $uri $uri/ =404;
|
try_files $uri $uri/ =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Any route containing a file extension (e.g. /devicesfile.js)
|
|
||||||
location ~ ^.+\..+$ {
|
|
||||||
try_files $uri =404;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue