fix(npm): add gRPC read/send timeouts to proxy host location blocks
Adds grpc_read_timeout 3600s and grpc_send_timeout 3600s to both ManagementService and SignalExchange location blocks to prevent long-lived gRPC connections from being dropped by Nginx. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -263,10 +263,14 @@ async def create_proxy_host(
|
|||||||
"location ^~ /management.ManagementService/ {\n"
|
"location ^~ /management.ManagementService/ {\n"
|
||||||
f" grpc_pass grpc://{forward_host}:{forward_port};\n"
|
f" grpc_pass grpc://{forward_host}:{forward_port};\n"
|
||||||
" grpc_set_header Host $host;\n"
|
" grpc_set_header Host $host;\n"
|
||||||
|
" grpc_read_timeout 3600s;\n"
|
||||||
|
" grpc_send_timeout 3600s;\n"
|
||||||
"}\n"
|
"}\n"
|
||||||
"location ^~ /signalexchange.SignalExchange/ {\n"
|
"location ^~ /signalexchange.SignalExchange/ {\n"
|
||||||
f" grpc_pass grpc://{forward_host}:{forward_port};\n"
|
f" grpc_pass grpc://{forward_host}:{forward_port};\n"
|
||||||
" grpc_set_header Host $host;\n"
|
" grpc_set_header Host $host;\n"
|
||||||
|
" grpc_read_timeout 3600s;\n"
|
||||||
|
" grpc_send_timeout 3600s;\n"
|
||||||
"}\n"
|
"}\n"
|
||||||
),
|
),
|
||||||
"meta": {
|
"meta": {
|
||||||
|
|||||||
Reference in New Issue
Block a user