mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
clean up config to use global settings
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
defaults: &defaults
|
||||
uri: <%= uri = URI.parse(ENV['REDIS_PROVIDER_URL'] || "redis://localhost:6379") %>
|
||||
host: <%= uri.host %>
|
||||
port: <%= uri.port %>
|
||||
password: <%= uri.password %>
|
||||
host: <%= GlobalSetting.redis_host %>
|
||||
port: <%= GlobalSetting.redis_port %>
|
||||
password: <%= GlobalSetting.redis_password %>
|
||||
db: 0
|
||||
cache_db: 2
|
||||
|
||||
@@ -20,4 +19,4 @@ staging:
|
||||
<<: *defaults
|
||||
|
||||
production:
|
||||
<<: *defaults
|
||||
<<: *defaults
|
||||
|
||||
Reference in New Issue
Block a user