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
Ricardo Pardini 2020-10-30 01:29:13 +01:00
parent 36da1c2428
commit 763515267b
1 changed files with 2 additions and 2 deletions

View File

@ -288,7 +288,7 @@ echo "Docker configured with HTTPS_PROXY=$scheme://$http_host/"
proxy_cache cache;
proxy_cache_key $uri;
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;
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_key $uri;
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;
error_page 301 302 307 = @handle_redirects;
}