add siapath

This commit is contained in:
Karol Wypchlo 2021-11-03 15:06:09 +01:00
parent eec5150264
commit d4b9146ecf
No known key found for this signature in database
GPG Key ID: C92C016317A964D0
1 changed files with 10 additions and 1 deletions

View File

@ -115,11 +115,20 @@ location /skynet/registry {
location /skynet/restore { location /skynet/restore {
include /etc/nginx/conf.d/include/cors; include /etc/nginx/conf.d/include/cors;
include /etc/nginx/conf.d/include/sia-auth; include /etc/nginx/conf.d/include/sia-auth;
include /etc/nginx/conf.d/include/generate-siapath;
client_max_body_size 5M; client_max_body_size 5M;
# increase request timeouts
proxy_read_timeout 600;
proxy_send_timeout 600;
proxy_request_buffering off; # stream uploaded files through the proxy as it comes in
proxy_set_header Expect $http_expect;
proxy_set_header User-Agent: Sia-Agent; proxy_set_header User-Agent: Sia-Agent;
proxy_pass http://sia:9980;
# proxy this call to siad endpoint (make sure the ip is correct)
proxy_pass http://sia:9980/skynet/restore/$dir1/$dir2/$dir3$is_args$args;
} }
location /skynet/skyfile { location /skynet/skyfile {