Merge pull request #786 from SkynetLabs/bump-tus-limit
replace limit on body size on tus endpoint
This commit is contained in:
commit
fda0e2304f
|
@ -390,13 +390,15 @@ server {
|
||||||
location /skynet/tus {
|
location /skynet/tus {
|
||||||
include /etc/nginx/conf.d/include/cors;
|
include /etc/nginx/conf.d/include/cors;
|
||||||
|
|
||||||
client_max_body_size 1000M; # make sure to limit the size of upload to a sane value
|
client_max_body_size 50M; # tus chunks size is 40M + leaving 10M of breathing room
|
||||||
proxy_read_timeout 600;
|
proxy_read_timeout 600;
|
||||||
proxy_request_buffering off; # stream uploaded files through the proxy as it comes in
|
proxy_request_buffering off; # stream uploaded files through the proxy as it comes in
|
||||||
proxy_set_header Expect $http_expect;
|
proxy_set_header Expect $http_expect;
|
||||||
|
|
||||||
# proxy /skynet/tus requests to siad endpoint with all arguments
|
# proxy /skynet/tus requests to siad endpoint with all arguments
|
||||||
proxy_pass http://siad;
|
proxy_pass http://siad;
|
||||||
|
|
||||||
|
# rewrite tus headers to use correct uri
|
||||||
proxy_redirect https://siad/ https://$domain.$tld/;
|
proxy_redirect https://siad/ https://$domain.$tld/;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue