2021-06-01 10:03:24 +03:00
|
|
|
#rewrite "^(.*)\.(\d{10})\.(css|js)$" $1.$3 break;
|
2021-11-16 21:35:03 +03:00
|
|
|
location ~* \.(gif|svg|ico)$ {
|
|
|
|
access_log off;
|
|
|
|
expires max;
|
|
|
|
log_not_found off;
|
|
|
|
error_page 404 = /empty;
|
|
|
|
}
|
2021-12-21 12:45:45 +03:00
|
|
|
location ~* \.jpe?g$ {
|
2021-11-16 21:35:03 +03:00
|
|
|
access_log off;
|
|
|
|
expires max;
|
|
|
|
log_not_found off;
|
|
|
|
error_page 404 = /empty;
|
|
|
|
}
|
2022-08-21 18:38:09 +03:00
|
|
|
location ~* \.webp {
|
|
|
|
access_log off;
|
|
|
|
expires max;
|
|
|
|
log_not_found off;
|
|
|
|
error_page 404 = /empty;
|
|
|
|
}
|
2021-11-16 21:35:03 +03:00
|
|
|
location ~* \.png$ {
|
2020-02-20 22:56:41 +03:00
|
|
|
access_log off;
|
|
|
|
expires max;
|
|
|
|
log_not_found off;
|
|
|
|
error_page 404 = /empty;
|
|
|
|
}
|
|
|
|
location = /empty {
|
|
|
|
expires 0;
|
|
|
|
empty_gif;
|
|
|
|
}
|
2022-01-19 11:02:17 +03:00
|
|
|
location ~* \.(eot|ttf|woff|woff2|otf|pdf|css|js|mp4)$ {
|
2021-11-16 22:25:10 +03:00
|
|
|
try_files $uri /404;
|
2020-02-20 22:56:41 +03:00
|
|
|
access_log off;
|
|
|
|
expires max;
|
|
|
|
}
|
|
|
|
location ~ /\. {
|
|
|
|
deny all;
|
|
|
|
}
|
|
|
|
location ~* \.(tpl|ini|sh) {
|
|
|
|
deny all;
|
|
|
|
}
|