diff --git a/docker/nginx/conf.d/client.conf b/docker/nginx/conf.d/client.conf index 73d6a6bf..ce0bd4e0 100644 --- a/docker/nginx/conf.d/client.conf +++ b/docker/nginx/conf.d/client.conf @@ -375,6 +375,17 @@ server { proxy_pass http://siad; } + location /skynet/health { + include /etc/nginx/conf.d/include/cors; + + proxy_cache skynet; + proxy_cache_key $request_uri; # use whole request uri (uri + args) as cache key + proxy_cache_valid any 1m; # cache any response for 1 minute + proxy_set_header User-Agent: Sia-Agent; + proxy_read_timeout 5m; # extend the read timeout to 5 minutes + proxy_pass http://siad; + } + location /skynet/resolve { include /etc/nginx/conf.d/include/cors;