From c74be9782a94cda6e21519a9393e8505a499eb3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Tue, 23 Jun 2026 18:58:08 +0400 Subject: [PATCH] =?UTF-8?q?v1.0.161:=20nginx=20/api/=20=E2=86=92=20Python?= =?UTF-8?q?=20:8766?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/nginx-contracts.conf | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/deploy/nginx-contracts.conf b/deploy/nginx-contracts.conf index 5adfbcf..d65cce0 100644 --- a/deploy/nginx-contracts.conf +++ b/deploy/nginx-contracts.conf @@ -15,6 +15,11 @@ server { proxy_read_timeout 10s; } + location /api/ { + proxy_pass http://127.0.0.1:8766; + proxy_read_timeout 30s; + } + location /lucee/ { rewrite ^/lucee/(.*) /$1 break; proxy_pass https://contractor.luceek8s.dev.nubes.ru; @@ -26,12 +31,8 @@ server { } location /convert-doc { - add_header Access-Control-Allow-Origin "*"; - add_header Access-Control-Allow-Methods "POST, OPTIONS"; - add_header Access-Control-Allow-Headers "*"; - if ($request_method = OPTIONS) { return 200; } - proxy_pass http://127.0.0.1:8766; + proxy_read_timeout 120s; client_max_body_size 50m; }