使用nginx反代理无法上传和下载


#1

目标服务器启动了seafile、memcached:1.5.6和mariadb:10.1的docker容器
然后反代服务器启动了nginx容器
反代服务器的nginx容器配置如下,server_name是域名,proxy_pass是目标服务器IP

server {
listen 80;
server_name *;
proxy_set_header X-Forwarded-For $remote_addr;
location / {
proxy_pass 目标服务器ip:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_read_timeout 1200s;
# used for view/edit office file via Office Online Server
client_max_body_size 0;
access_log /var/log/nginx/seahub.access.log;
error_log /var/log/nginx/seahub.error.log;
}

location /seafhttp {
    rewrite ^/seafhttp(.*)$ $1 break;
    proxy_pass 目标服务器ip:8082;
    client_max_body_size 0;
    proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_connect_timeout  36000s;
    proxy_read_timeout  36000s;
    proxy_send_timeout  36000s;
    send_timeout  36000s;
}

}


#2

web后台写的什么