Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.

Commit 70ffe14

Browse files
committed
Merge pull request #459 from activars/fix-backwards-compatibility
Fix Redis LRU cache default configuration backwards compatibility
2 parents aa8b05c + c968a82 commit 70ffe14

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

config/config_sample.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,20 @@ common: &common
2323
source_index: _env:MIRROR_SOURCE_INDEX # https://index.docker.io
2424
tags_cache_ttl: _env:MIRROR_TAGS_CACHE_TTL:172800 # seconds
2525

26-
# cache:
27-
# host: _env:CACHE_REDIS_HOST:localhost
28-
# port: _env:CACHE_REDIS_PORT:6379
29-
# db: 0
30-
# password: _env:CACHE_REDIS_PASSWORD
26+
cache:
27+
host: _env:CACHE_REDIS_HOST
28+
port: _env:CACHE_REDIS_PORT
29+
db: _env:CACHE_REDIS_DB:0
30+
password: _env:CACHE_REDIS_PASSWORD
3131

3232
# Enabling LRU cache for small files
3333
# This speeds up read/write on small files
3434
# when using a remote storage backend (like S3).
35-
# cache_lru:
36-
# host: _env:CACHE_LRU_REDIS_HOST:localhost
37-
# port: _env:CACHE_LRU_REDIS_PORT:6379
38-
# db: 0
39-
# password: _env:CACHE_LRU_REDIS_PASSWORD
35+
cache_lru:
36+
host: _env:CACHE_LRU_REDIS_HOST
37+
port: _env:CACHE_LRU_REDIS_PORT
38+
db: _env:CACHE_LRU_REDIS_DB:0
39+
password: _env:CACHE_LRU_REDIS_PASSWORD
4040

4141
# Enabling these options makes the Registry send an email on each code Exception
4242
email_exceptions:

0 commit comments

Comments
 (0)