Update nginx.conf

This commit is contained in:
Павел Цильке 2024-12-24 10:20:35 +03:00
parent 5ea9a6c5f3
commit 17ee170b43

View file

@ -78,7 +78,12 @@ http {
root /frontend;
index index.html;
try_files $uri @index;
#Application config
location = src/resources/app-config.json {
add_header Cache-Control no-cache;
expires 0;
}
# Media: images, icons, video, audio, HTC
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|mp3|ogg|ogv|webm|htc|woff2|woff|ttf)$ {
expires 1M;
@ -92,6 +97,7 @@ http {
access_log off;
add_header Cache-Control "max-age=31556952, public";
}
}
location @index {