Update nginx.conf

This commit is contained in:
Павел Цильке 2024-12-21 23:26:42 +03:00
parent fea9dd7aac
commit 95e7642087

View file

@ -77,11 +77,8 @@ http {
location / {
root /frontend;
index index.html;
try_files $uri $uri/ $uri/index.html;
location = index.html {
expires -1;
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0";
}
try_files $uri @indexl;
# 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;
@ -97,6 +94,13 @@ http {
}
}
location @index {
root /frontend;
add_header Cache-Control no-cache;
expires 0;
try_files /index.html =404;
}
location = /health {
access_log off;
add_header 'Content-Type' 'application/json';