Update nginx.conf
This commit is contained in:
parent
5ea9a6c5f3
commit
17ee170b43
1 changed files with 7 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue