Skip to content

Commit 2946e54

Browse files
Revert "feat(nginx): use slice module" (#40)
This reverts commit 9cd0135
1 parent 0f77221 commit 2946e54

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

nginx.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,8 @@ echo "Docker configured with HTTPS_PROXY=$scheme://$http_host/"
329329
proxy_cache $cache;
330330
# But we store the result with the cache key of the original request URI
331331
# so that future clients don't need to follow the redirect too
332-
proxy_cache_key $cache_key$slice_range;
333-
add_header X-Docker-Registry-Proxy-Cache-Key-Status "$cache_key$slice_range";
332+
proxy_cache_key $cache_key;
333+
add_header X-Docker-Registry-Proxy-Cache-Key-Status "$cache_key";
334334
}
335335

336336
# Don't send Authorization to /v2/ to trigger WWW-Authenticate; don't cache these

nginx.manifest.common.conf

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
add_header X-Docker-Registry-Proxy-Cache-Type "$docker_proxy_request_type";
44
proxy_pass https://$targetHost;
55
proxy_cache $cache;
6-
slice 4m;
7-
proxy_cache_key $cache_key$slice_range;
8-
proxy_set_header Range $slice_range;
9-
add_header X-Docker-Registry-Proxy-Cache-Key-Status "$cache_key$slice_range";
6+
proxy_cache_key $cache_key;
7+
add_header X-Docker-Registry-Proxy-Cache-Key-Status "$cache_key";
108
proxy_http_version 1.1;
119
proxy_intercept_errors on;
1210
error_page 301 302 307 = @handle_redirects;

0 commit comments

Comments
 (0)