Changed to cache all traffic throught proxy.

This commit is contained in:
2024-06-14 14:22:52 +03:00
parent fcf8fc1ca2
commit 787728f00e
6 changed files with 20 additions and 68 deletions

View File

@@ -3,6 +3,6 @@
add_header X-Docker-Registry-Proxy-Cache-Type "$docker_proxy_request_type";
proxy_pass https://$targetHost;
proxy_cache cache;
proxy_cache_key $uri;
proxy_cache_key $host$uri;
proxy_intercept_errors on;
error_page 301 302 307 = @handle_redirects;