docker-registry-proxy
docker-registry-proxy copied to clipboard
Feature/configure blob caching
This PR implements the following:
What:
- Enable configuration of 'proxy_cache_valid' age with CACHE_VALIDITY_PERIOD var (defaults to 60d)
- Enable configuration of 'proxy_cache_path' 'inactive' setting with CACHE_MAX_AGE var (defaults to 60d)
- Allows serving from STALE cache for non-manifest layers (eg: blob) when upstream is not available (e.g. connectivity issues / airgapped solution)
Why:
- We want to be able to pull images and cache them for variable periods of time (e.g. forever).
- We want to limit the impact of upstream outages by always allowing serving of STALE content if there are upstream issues
Comments welcome
Happy to update readme post discussion
includes changes from #107