v1.0.161: nginx /api/ → Python :8766
This commit is contained in:
@@ -15,6 +15,11 @@ server {
|
|||||||
proxy_read_timeout 10s;
|
proxy_read_timeout 10s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /api/ {
|
||||||
|
proxy_pass http://127.0.0.1:8766;
|
||||||
|
proxy_read_timeout 30s;
|
||||||
|
}
|
||||||
|
|
||||||
location /lucee/ {
|
location /lucee/ {
|
||||||
rewrite ^/lucee/(.*) /$1 break;
|
rewrite ^/lucee/(.*) /$1 break;
|
||||||
proxy_pass https://contractor.luceek8s.dev.nubes.ru;
|
proxy_pass https://contractor.luceek8s.dev.nubes.ru;
|
||||||
@@ -26,12 +31,8 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location /convert-doc {
|
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_pass http://127.0.0.1:8766;
|
||||||
|
proxy_read_timeout 120s;
|
||||||
client_max_body_size 50m;
|
client_max_body_size 50m;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user