This commit is contained in:
vchikalkin 2022-04-06 16:54:56 +03:00
commit 19087f92dc

View File

@ -1,8 +1,22 @@
server {
listen 3000;
location / {
listen 3000;
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
}
}
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|mp3|ogg|ogv|webm|htc|woff2|woff)$ {
expires 1M;
access_log off;
# max-age must be in seconds
add_header Cache-Control "max-age=2629746, public";
}
location ~* \.(?:css|js)$ {
expires 1M;
access_log off;
add_header Cache-Control "max-age=2629746, public";
}
location / {
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
}
}