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; }