From b31d3bf680be0cc7867271d9fe8d1924714550e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20Wypch=C5=82o?= Date: Fri, 23 Jul 2021 16:57:20 +0200 Subject: [PATCH] request skylink v2 instead of v1 (#990) * request skylink v2 instead of v1 * skylink_v2 => skylink --- docker/nginx/conf.d/client.conf | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/docker/nginx/conf.d/client.conf b/docker/nginx/conf.d/client.conf index 1ace7f7b..f96d1f62 100644 --- a/docker/nginx/conf.d/client.conf +++ b/docker/nginx/conf.d/client.conf @@ -454,11 +454,7 @@ server { proxy_read_timeout 600; proxy_set_header User-Agent: Sia-Agent; - # in case the requested skylink was v2 and we already resolved it to skylink v1, we're going to pass resolved - # skylink v1 to skyd to save that extra skylink v2 lookup in skyd but in turn, in case skyd returns a redirect - # we need to rewrite the skylink v1 to skylink v2 in the location header with proxy_redirect - proxy_redirect $skylink_v1 $skylink_v2; - proxy_pass http://siad/skynet/skylink/$skylink_v1$path$is_args$args; + proxy_pass http://siad/skynet/skylink/$skylink$path$is_args$args; } location @dnslink_lookup {