设定上传文件的限制大小:
client_max_body_size 512000m;
哪吒监控的gRPC端口反代的参数:
underscores_in_headers on;
location / {
grpc_read_timeout 300s;
grpc_send_timeout 300s;
grpc_socket_keepalive on;
if ($http_content_type = “application/grpc”) {
grpc_pass grpc://127.0.0.1:5555;
}
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
# Proxy!
include conf.d/include/proxy.conf;
}