Update nginx.conf
This commit is contained in:
parent
fea9dd7aac
commit
95e7642087
1 changed files with 9 additions and 5 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue