use_stale for HTTP 429 Too Many Requests (actually used by DockerHub ratelimiting #54) instead of 403
- tested by trying to pull `ratelimitalways/test:latest`cache-manifests-tiers
parent
36da1c2428
commit
763515267b
|
@ -288,7 +288,7 @@ echo "Docker configured with HTTPS_PROXY=$scheme://$http_host/"
|
||||||
proxy_cache cache;
|
proxy_cache cache;
|
||||||
proxy_cache_key $uri;
|
proxy_cache_key $uri;
|
||||||
proxy_intercept_errors on;
|
proxy_intercept_errors on;
|
||||||
proxy_cache_use_stale error timeout http_500 http_502 http_504 http_403;
|
proxy_cache_use_stale error timeout http_500 http_502 http_504 http_429;
|
||||||
proxy_cache_valid 1s;
|
proxy_cache_valid 1s;
|
||||||
error_page 301 302 307 = @handle_redirects;
|
error_page 301 302 307 = @handle_redirects;
|
||||||
}
|
}
|
||||||
|
@ -300,7 +300,7 @@ echo "Docker configured with HTTPS_PROXY=$scheme://$http_host/"
|
||||||
proxy_cache cache;
|
proxy_cache cache;
|
||||||
proxy_cache_key $uri;
|
proxy_cache_key $uri;
|
||||||
proxy_intercept_errors on;
|
proxy_intercept_errors on;
|
||||||
proxy_cache_use_stale error timeout http_500 http_502 http_504 http_403;
|
proxy_cache_use_stale error timeout http_500 http_502 http_504 http_429;
|
||||||
proxy_cache_valid 1s;
|
proxy_cache_valid 1s;
|
||||||
error_page 301 302 307 = @handle_redirects;
|
error_page 301 302 307 = @handle_redirects;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue