fixes from rtsk repos

This commit is contained in:
kochetkov 2025-01-15 15:15:03 +03:00
parent 12abacea78
commit d40d1d47d6
2 changed files with 17 additions and 15 deletions

View file

@ -12,7 +12,7 @@ server {
sendfile off; sendfile off;
charset utf-8; charset utf-8;
server_tokens off; server_tokens off;
client_max_body_size 32m; client_max_body_size 32m;
@ -57,19 +57,21 @@ server {
index index.html; index index.html;
expires -1; expires -1;
# Media: images, icons, video, audio, HTC 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:;";
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|mp3|ogg|ogv|webm|htc|woff2|woff|ttf)$ {
expires 1M; # Media: images, icons, video, audio, HTC
access_log off; location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|mp3|ogg|ogv|webm|htc|woff2|woff|ttf)$ {
# max-age must be in seconds expires 1M;
add_header Cache-Control "max-age=2629746, public"; access_log off;
} # max-age must be in seconds
# CSS and Javascript add_header Cache-Control "max-age=2629746, public";
location ~* \.(?:css|js)$ { }
expires 1y; # CSS and Javascript
access_log off; location ~* \.(?:css|js)$ {
add_header Cache-Control "max-age=31556952, public"; expires 1y;
} access_log off;
add_header Cache-Control "max-age=31556952, public";
}
ssi on; ssi on;
set $flUrl "${LKRP_FL_URL}"; set $flUrl "${LKRP_FL_URL}";

View file

@ -13,7 +13,7 @@
<div class="header"> <div class="header">
<div class="header-logo"></div> <div class="header-logo"></div>
<div class="header-title">Военный комиссариат Министерства обороны Российской Федерации</div> <div class="header-title">Реестр повесток Российской Федерации</div>
</div> </div>
<div class="container"> <div class="container">