Skip to content

Commit 7635152

Browse files
committed
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`
1 parent 36da1c2 commit 7635152

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nginx.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ echo "Docker configured with HTTPS_PROXY=$scheme://$http_host/"
288288
proxy_cache cache;
289289
proxy_cache_key $uri;
290290
proxy_intercept_errors on;
291-
proxy_cache_use_stale error timeout http_500 http_502 http_504 http_403;
291+
proxy_cache_use_stale error timeout http_500 http_502 http_504 http_429;
292292
proxy_cache_valid 1s;
293293
error_page 301 302 307 = @handle_redirects;
294294
}
@@ -300,7 +300,7 @@ echo "Docker configured with HTTPS_PROXY=$scheme://$http_host/"
300300
proxy_cache cache;
301301
proxy_cache_key $uri;
302302
proxy_intercept_errors on;
303-
proxy_cache_use_stale error timeout http_500 http_502 http_504 http_403;
303+
proxy_cache_use_stale error timeout http_500 http_502 http_504 http_429;
304304
proxy_cache_valid 1s;
305305
error_page 301 302 307 = @handle_redirects;
306306
}

0 commit comments

Comments
 (0)