Nginx 反向代理在大文件上停止
Nginx reverse proxy stalls on large files
我的设置:
Nginx 反向代理代理从我的域到 Synology NAS 的流量
https://photo.domain.com => Synology Photos (local IP)
但是,当尝试上传大文件(=视频)时,上传失败。
直接连接到本地 IP 工作正常 - 所以:代理不知何故失败。
在 /etc/nginx/nginx.conf 中我指定了:
client_max_body_size 0;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
也用
测试过
client_header_timeout 300s;
client_body_timeout 300s;
keepalive_timeout 300s;
send_timeout 300s;
上传仍然失败。非常感谢您的建议或提示! :-)
解决了这个问题:
client_max_body_size 0;
proxy_read_timeout 1800;
proxy_connect_timeout 1800;
proxy_send_timeout 1800;
proxy_request_buffering off;
认为这是完成工作的最后一行:)
我的设置: Nginx 反向代理代理从我的域到 Synology NAS 的流量
https://photo.domain.com => Synology Photos (local IP)
但是,当尝试上传大文件(=视频)时,上传失败。 直接连接到本地 IP 工作正常 - 所以:代理不知何故失败。
在 /etc/nginx/nginx.conf 中我指定了:
client_max_body_size 0;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
也用
测试过client_header_timeout 300s;
client_body_timeout 300s;
keepalive_timeout 300s;
send_timeout 300s;
上传仍然失败。非常感谢您的建议或提示! :-)
解决了这个问题:
client_max_body_size 0;
proxy_read_timeout 1800;
proxy_connect_timeout 1800;
proxy_send_timeout 1800;
proxy_request_buffering off;
认为这是完成工作的最后一行:)