extend timeout on stats endpoints
This commit is contained in:
parent
dd0f40b945
commit
4c7ad44f08
|
@ -80,8 +80,9 @@ server {
|
||||||
include /etc/nginx/conf.d/include/cors;
|
include /etc/nginx/conf.d/include/cors;
|
||||||
|
|
||||||
proxy_cache skynet;
|
proxy_cache skynet;
|
||||||
proxy_cache_valid any 1m; # cache stats for 1 minute
|
proxy_cache_valid any 10m; # cache stats for 10 minutes
|
||||||
proxy_set_header User-Agent: Sia-Agent;
|
proxy_set_header User-Agent: Sia-Agent;
|
||||||
|
proxy_read_timeout 5m; # extend the read timeout
|
||||||
proxy_pass http://siad/skynet/stats;
|
proxy_pass http://siad/skynet/stats;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -89,8 +90,9 @@ server {
|
||||||
include /etc/nginx/conf.d/include/cors;
|
include /etc/nginx/conf.d/include/cors;
|
||||||
|
|
||||||
proxy_cache skynet;
|
proxy_cache skynet;
|
||||||
proxy_cache_valid any 1m; # cache stats for 1 minute
|
proxy_cache_valid any 10m; # cache stats for 10 minutes
|
||||||
proxy_set_header User-Agent: Sia-Agent;
|
proxy_set_header User-Agent: Sia-Agent;
|
||||||
|
proxy_read_timeout 5m; # extend the read timeout
|
||||||
proxy_pass http://siad/skynet/stats;
|
proxy_pass http://siad/skynet/stats;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -98,8 +100,9 @@ server {
|
||||||
include /etc/nginx/conf.d/include/cors;
|
include /etc/nginx/conf.d/include/cors;
|
||||||
|
|
||||||
proxy_cache skynet;
|
proxy_cache skynet;
|
||||||
proxy_cache_valid any 1m; # cache stats for 1 minute
|
proxy_cache_valid any 10m; # cache stats for 10 minutes
|
||||||
proxy_set_header User-Agent: Sia-Agent;
|
proxy_set_header User-Agent: Sia-Agent;
|
||||||
|
proxy_read_timeout 5m; # extend the read timeout
|
||||||
proxy_pass http://siad-upload/skynet/stats; # serve upload node stats temporarily
|
proxy_pass http://siad-upload/skynet/stats; # serve upload node stats temporarily
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue