vue应用集成sentry: 超过20M文件无法上传问题 sentry reported an error: bad gateway (http status: 502)

原issue地址 https://forum.sentry.io/t/sourcemap-upload-failing-when-file-size-more-than-20mb/4660

实际nginx可能也需要修改, 参考配置如下

server {
	server_tokens off;
    client_header_timeout 180m;
    client_body_timeout   180m;
    send_timeout          180m;
    # upload size limits
    client_max_body_size 2048M;# 限制上传文件大小
    client_body_buffer_size 2048M;
    client_header_buffer_size 10M;
    large_client_header_buffers 4 16k;

	keepalive_timeout 1800;
	sendfile on;
	client_header_buffer_size 10M;
    large_client_header_buffers 4 16k;
}

你可能感兴趣的:(sentry,vue.js,sentry)