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`
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user