Skip to content

Commit

Permalink
Add deploy environment to redis namespace
Browse files Browse the repository at this point in the history
We want to separate cache items between prod and beta
  • Loading branch information
alastair committed Apr 1, 2022
1 parent 5658326 commit f2b3a65
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions consul_config.py.ctmpl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ MB_DATABASE_URI = "postgresql://musicbrainz_ro@{{.Address}}:{{.Port}}/musicbrain
{{with index (service "critiquebrainz-redis") 0}}
REDIS_HOST = "{{.Address}}"
REDIS_PORT = {{.Port}}
REDIS_NAMESPACE = "CB-{{(env "DEPLOY_ENV")}}"
{{end}}
{{end}}

Expand Down

0 comments on commit f2b3a65

Please sign in to comment.