Set CacheDefaultExpire for 8001/8002 on mirrors

We are actually okay with caching docker things a little longer then
the default 1 hour, due to their size and since layers using sha1
hash.  Bump the default in this case to 1 day before starting to
expire.

Change-Id: I5ca7ad30d6bd2228d5e6941acde78ee4a0b0bec8
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2018-07-06 10:48:57 -04:00
parent 4a5bb85268
commit 243bd42a07
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
1 changed files with 8 additions and 0 deletions

View File

@ -256,6 +256,10 @@ LogFormat "%h %l %u %t \"%r\" %>s %b %{cache-status}e \"%{Referer}i\" \"%{User-a
CacheMaxFileSize 5368709120
# Ignore expire headers as the urls use sha256 hashes.
CacheIgnoreQueryString On
# NOTE(pabelanger): In the case of docker, if neither an expiry date nor
# last-modified date are provided default expire to 1 day. This is up from
# 1 hour.
CacheDefaultExpire 86400
CacheStoreExpired On
# registry-1.docker.io
@ -314,6 +318,10 @@ LogFormat "%h %l %u %t \"%r\" %>s %b %{cache-status}e \"%{Referer}i\" \"%{User-a
CacheMaxFileSize 5368709120
# Ignore expire headers as the urls use sha256 hashes.
CacheIgnoreQueryString On
# NOTE(pabelanger): In the case of docker, if neither an expiry date nor
# last-modified date are provided default expire to 1 day. This is up from
# 1 hour.
CacheDefaultExpire 86400
CacheStoreExpired On
# NOTE(SamYaple): Docker has historically not allowed to have anything in