nginx: add new location block

This commit is contained in:
Izorkin 2024-09-02 23:14:26 +03:00
parent f286abc857
commit a9e111265e
No known key found for this signature in database
GPG Key ID: 1436C1B3F3679F09

6
dist/nginx.conf vendored
View File

@ -100,6 +100,12 @@ server {
try_files $uri =404;
}
location ^~ /ocr/ {
add_header Cache-Control "public, max-age=2419200, must-revalidate";
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains";
try_files $uri =404;
}
location ^~ /packs/ {
add_header Cache-Control "public, max-age=2419200, must-revalidate";
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains";