From a9e111265e7ab760050575742e582bdb1e289812 Mon Sep 17 00:00:00 2001 From: Izorkin Date: Mon, 2 Sep 2024 23:14:26 +0300 Subject: [PATCH] nginx: add new location block --- dist/nginx.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dist/nginx.conf b/dist/nginx.conf index 6322ea8c55..f558211451 100644 --- a/dist/nginx.conf +++ b/dist/nginx.conf @@ -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";