docker-registry-proxy/nginx.manifest.common.conf

10 lines
469 B
Plaintext

# 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;
proxy_intercept_errors on;
error_page 301 302 307 = @handle_redirects;
proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;