nginx seafile


location /seafhttp {
            rewrite ^/seafhttp(.*)$ $1 break;
            #seafile的端口,根据实际情况设置,默认是8082
            proxy_pass http://172.19.0.4:8082;
            client_max_body_size 0;
            proxy_set_header Host $host;
            proxy_set_header X-Forwarded-Scheme $scheme;
            proxy_set_header X-Forwarded-Proto  $scheme;
            proxy_set_header X-Forwarded-For    $remote_addr;
            proxy_set_header X-Real-IP		$remote_addr;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection $http_connection;
            proxy_http_version 1.1;
            proxy_connect_timeout  36000s;
            proxy_read_timeout  36000s;
            proxy_send_timeout  36000s;
            send_timeout  36000s;
            proxy_request_buffering off;
}

posted @ 2022-02-06 10:34  月渊  阅读(91)  评论(0)    收藏  举报