From a4f0633e74ad5e8a80df4b076da8b5d0b5699dcc Mon Sep 17 00:00:00 2001 From: Mikhail Date: Tue, 18 Jul 2023 22:03:12 +0000 Subject: [PATCH] Update file default.conf --- default.conf | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/default.conf b/default.conf index 234c02b..bd4ad26 100644 --- a/default.conf +++ b/default.conf @@ -119,7 +119,7 @@ server { proxy_set_header Host $host; proxy_pass http://10.6.0.31:8006/; } - location /verification/ { + location /verification1 { if ($request_method = OPTIONS) { add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Credentials true always; @@ -131,6 +131,23 @@ server { add_header Access-Control-Allow-Credentials true always; add_header Access-Control-Allow-Headers content-type,authorization always; add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE; + chunked_transfer_encoding off; + proxy_buffering off; + proxy_cache off; + proxy_pass https://storage.yandexcloud.net; + } + location /verification/ { + if ($request_method = OPTIONS) { + add_header Access-Control-Allow-Origin $http_origin always; + add_header Access-Control-Allow-Credentials true always; + add_header Access-Control-Allow-Headers content-type always; + add_header Access-Control-Allow-Methods GET; + return 200; + } + add_header Access-Control-Allow-Origin $http_origin always; + add_header Access-Control-Allow-Credentials true always; + add_header Access-Control-Allow-Headers content-type always; + add_header Access-Control-Allow-Methods GET; proxy_set_header Referer $host; proxy_set_header Origin $http_origin; proxy_set_header Connection '';