DEVOPS-1892 nginx.conf grooming

This commit is contained in:
Pavel Zilke 2025-01-14 10:25:30 +03:00
parent 08572b35fa
commit 45f7e2db8b

View file

@ -79,6 +79,11 @@ http {
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;
@ -96,7 +101,7 @@ http {
location @index {
root /frontend;
add_header Cache-Control no-cache;
add_header Cache-Control "no-cache";
expires 0;
try_files /index.html =404;
}