mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
0ed42707cc
Hardcoding the Redis DB and Redis Caching DB to 0 and 2 in `config/database.yml` makes an unsafe assumption that Discourse is the only application using that install of redis-server. Instead of forcing users to undergo yet another form of configuration, allow Discourse admins a nicer way to configure the Redis databases used. Signed-off-by: David Celis <me@davidcel.is>
22 lines
374 B
YAML
22 lines
374 B
YAML
defaults: &defaults
|
|
host: <%= GlobalSetting.redis_host %>
|
|
port: <%= GlobalSetting.redis_port %>
|
|
password: <%= GlobalSetting.redis_password %>
|
|
db: <%= GlobalSetting.redis_db %>
|
|
cache_db: <%= GlobalSetting.redis_cache_db %>
|
|
|
|
development:
|
|
<<: *defaults
|
|
|
|
profile:
|
|
<<: *defaults
|
|
|
|
test:
|
|
<<: *defaults
|
|
db: 1
|
|
|
|
staging:
|
|
<<: *defaults
|
|
|
|
production:
|
|
<<: *defaults
|