Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
fix(registry): make deis-cache mandatory
Browse files Browse the repository at this point in the history
Sometimes the redis cache would take longer than the registry to come
up. In that case, confd would then set the host and port to be "",
in which case the registry would parse the YAML value as `None`. This
change makes the cache mandatory in order for the registry to come up.
  • Loading branch information
Matthew Fisher committed Oct 9, 2014
1 parent 676da87 commit 250e7cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions registry/templates/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ common: &common
tags_cache_ttl: _env:MIRROR_TAGS_CACHE_TTL:172800 # seconds

cache:
host: {{ or (.deis_cache_host) "" }}
port: {{ or (.deis_cache_port) "" }}
host: {{ .deis_cache_host }}
port: {{ .deis_cache_port }}
password: _env:CACHE_REDIS_PASSWORD
db: 1

Expand Down

0 comments on commit 250e7cc

Please sign in to comment.