fix: stream large graph JSON imports

This commit is contained in:
xuelong committed 2026-09-01 23:26:16 -07:00
1 parent 712ca1418c
commit 4b19638ff8
16 files changed
+1595 -193

No files matched your search

+15
View File
@@ -40,6 +40,21 @@ server {
proxy_set_header X-Forwarded-Proto https;
}
# Only graph file import accepts a large request. The API independently
# limits the file to GRAPH_IMPORT_MAX_BYTES (default 1 GiB); allow room for
# multipart headers/Schema. All other endpoints retain the 55m limit.
location = /v1/admin/projects/provision-file {
client_max_body_size 1030m;
proxy_pass http://127.0.0.1:8102;
include proxy_params;
proxy_set_header X-Forwarded-Proto https;
proxy_http_version 1.1;
proxy_request_buffering off;
proxy_buffering off;
proxy_read_timeout 120s;
proxy_send_timeout 120s;
}
location / {
proxy_pass http://127.0.0.1:8102;
include proxy_params;