You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: nginx.conf
+16-36Lines changed: 16 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -198,8 +198,8 @@ echo "Docker configured with HTTPS_PROXY=$scheme://$http_host/"
198
198
proxy_cache_lock on;
199
199
proxy_cache_lock_timeout 880s;
200
200
201
-
# Cache all 200, 301, 302, and 307 (emitted by private registries) for 60 days.
202
-
proxy_cache_valid20030130230760d;
201
+
# Cache all 200, 206 for 60 days.
202
+
proxy_cache_valid20020660d;
203
203
204
204
# Some extra settings to maximize cache hits and efficiency
205
205
proxy_force_ranges on;
@@ -225,47 +225,28 @@ echo "Docker configured with HTTPS_PROXY=$scheme://$http_host/"
225
225
return405"docker-registry-proxy: docker is trying to use v1 API. Either the image does not exist upstream, or you need to configure docker-registry-proxy to authenticate against $host";
226
226
}
227
227
228
-
229
228
# for the /v2/..../blobs/.... URIs, do cache, and treat redirects.
0 commit comments