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
@@ -196,8 +196,8 @@ echo "Docker configured with HTTPS_PROXY=$scheme://$http_host/"
196
196
proxy_cache_lock on;
197
197
proxy_cache_lock_timeout 880s;
198
198
199
-
# Cache all 200, 301, 302, and 307 (emitted by private registries) for 60 days.
200
-
proxy_cache_valid20030130230760d;
199
+
# Cache all 200, 206 for 60 days.
200
+
proxy_cache_valid20020660d;
201
201
202
202
# Some extra settings to maximize cache hits and efficiency
203
203
proxy_force_ranges on;
@@ -223,47 +223,28 @@ echo "Docker configured with HTTPS_PROXY=$scheme://$http_host/"
223
223
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";
224
224
}
225
225
226
-
227
226
# for the /v2/..../blobs/.... URIs, do cache, and treat redirects.
0 commit comments