本帖最后由 ORM 于 2021-11-24 10:23 编辑
大佬帮帮看下 现在是只要超过100M就502,不走反代就没问题,我的Nginx配置: server { listen 80; server_name file.domain.com; location / { proxy_buffers 8 32k; proxy_buffer_size 64k; client_max_body_size 10240M; proxy_pass http://localhost:8081; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-NginX-Proxy true; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_read_timeout 999999999; } } |