DEVOPS-1898 fixes from Pavel
This commit is contained in:
parent
6617e42343
commit
522ef07ff0
1 changed files with 22 additions and 16 deletions
|
|
@ -83,6 +83,11 @@ http {
|
||||||
|
|
||||||
add_header Content-Security-Policy "frame-ancestors 'none'; default-src 'self'; script-src 'self'; style-src 'unsafe-inline' 'self' data:; font-src 'self' data:; img-src 'self' data:;";
|
add_header Content-Security-Policy "frame-ancestors 'none'; default-src 'self'; script-src 'self'; style-src 'unsafe-inline' 'self' data:; font-src 'self' data:; img-src 'self' data:;";
|
||||||
|
|
||||||
|
#Application config
|
||||||
|
location = /src/resources/app-config.json {
|
||||||
|
add_header Cache-Control "no-cache";
|
||||||
|
expires 0;
|
||||||
|
}
|
||||||
# Media: images, icons, video, audio, HTC
|
# 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)$ {
|
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|mp3|ogg|ogv|webm|htc|woff2|woff|ttf)$ {
|
||||||
expires 1M;
|
expires 1M;
|
||||||
|
|
@ -100,7 +105,8 @@ http {
|
||||||
|
|
||||||
location @index {
|
location @index {
|
||||||
root /frontend;
|
root /frontend;
|
||||||
add_header Cache-Control no-cache;
|
add_header Cache-Control "no-cache";
|
||||||
|
add_header Content-Security-Policy "frame-ancestors 'none'; default-src 'self'; script-src 'self'; style-src 'unsafe-inline' 'self' data:; font-src 'self' data:; img-src 'self' data:;";
|
||||||
expires 0;
|
expires 0;
|
||||||
try_files /index.html =404;
|
try_files /index.html =404;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue