Merge pull request #10 from tribalwarshelp/develop

update nginx.conf
This commit is contained in:
Dawid Wysokiński 2021-03-27 17:34:01 +01:00 committed by GitHub
commit dc2a6d9bdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,17 +42,11 @@ http {
# Javascript and CSS files
location ~* \.(?:css|webmanifest|js|woff2|manifest)$ {
try_files $uri =404;
expires 1y;
access_log off;
add_header Cache-Control "public";
}
# Any route containing a file extension (e.g. /devicesfile.js)
location ~ ^.+\..+$ {
try_files $uri =404;
}
location / {
# First attempt to serve request as file, then
# as directory, then fall back to redirecting to index.html