2020-10-30 17:54:10 +00:00
|
|
|
# nginx config fragment included in every manifest-related location{} block.
|
|
|
|
add_header X-Docker-Registry-Proxy-Cache-Upstream-Status "$upstream_cache_status";
|
|
|
|
add_header X-Docker-Registry-Proxy-Cache-Type "$docker_proxy_request_type";
|
|
|
|
proxy_pass https://$targetHost;
|
|
|
|
proxy_cache cache;
|
|
|
|
proxy_cache_key $uri;
|
2021-08-04 06:37:39 +00:00
|
|
|
proxy_cache_use_stale error timeout http_500 http_502 http_504 http_429;
|
2020-10-30 17:54:10 +00:00
|
|
|
proxy_intercept_errors on;
|
|
|
|
error_page 301 302 307 = @handle_redirects;
|