【问题标题】:Nginx reverse proxy stalls on large filesNginx 反向代理在大文件上停止
【发布时间】:2021-10-13 01:33:45
【问题描述】:

我的设置: 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;

上传仍然失败。非常感谢您的建议或提示! :-)

【问题讨论】:

    标签: nginx nginx-reverse-proxy


    【解决方案1】:

    解决了这个问题:

    client_max_body_size 0;
    proxy_read_timeout 1800;
    proxy_connect_timeout 1800;
    proxy_send_timeout 1800;
    proxy_request_buffering off;
    

    认为这是完成这项工作的最后一行 :)

    【讨论】:

      猜你喜欢
      • 2017-12-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-08-19
      • 2017-09-09
      • 2020-06-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多