From ebcf59dc53d6ed1ba0b91ceda3a3fa63ba615ae0 Mon Sep 17 00:00:00 2001 From: Mikhail Date: Wed, 14 Feb 2024 14:52:21 +0000 Subject: [PATCH] Update default.conf --- default.conf | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/default.conf b/default.conf index 3ec3c96..608c97d 100644 --- a/default.conf +++ b/default.conf @@ -106,7 +106,14 @@ server { } location /answer/ { - client_max_body_size 100M; + proxy_set_header Referer $host; + proxy_set_header Origin $http_origin; + proxy_set_header Connection ''; + proxy_http_version 1.1; + chunked_transfer_encoding off; + proxy_buffering off; + proxy_cache off; + if ($request_method = OPTIONS) { add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Credentials true always; @@ -125,7 +132,14 @@ server { } location /squiz/ { - client_max_body_size 100M; + proxy_set_header Referer $host; + proxy_set_header Origin $http_origin; + proxy_set_header Connection ''; + proxy_http_version 1.1; + chunked_transfer_encoding off; + proxy_buffering off; + proxy_cache off; + if ($request_method = OPTIONS) { add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Credentials true always; @@ -141,6 +155,14 @@ server { } location /squizstorer/ { + proxy_set_header Referer $host; + proxy_set_header Origin $http_origin; + proxy_set_header Connection ''; + proxy_http_version 1.1; + chunked_transfer_encoding off; + proxy_buffering off; + proxy_cache off; + if ($request_method = OPTIONS) { add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Credentials true always;