1
0
Fork 0

Connect to Redis through private network

This commit is contained in:
Alex Kotov 2019-09-10 03:49:48 +05:00
parent 42f5233d4e
commit e0d3d436ab
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
3 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@ default:
password: <%= ENV.fetch('RAILS_CACHE_REDIS_PASSWORD') { 'password' } %>
production:
host: 'db-redis-ams3-76837-do-user-4455684-0.db.ondigitalocean.com'
host: 'private-db-redis-ams3-76837-do-user-4455684-0.db.ondigitalocean.com'
port: 25061
password: <%= Rails.application.credentials.sidekiq_cache_redis_password %>
db: 1

View file

@ -12,7 +12,7 @@ test:
redis_db: <%= ENV.fetch('SIDEKIQ_CLIENT_REDIS_DB') { 15 } %>
production:
redis_host: 'db-redis-ams3-76837-do-user-4455684-0.db.ondigitalocean.com'
redis_host: 'private-db-redis-ams3-76837-do-user-4455684-0.db.ondigitalocean.com'
redis_port: 25061
redis_password: <%= Rails.application.credentials.sidekiq_client_redis_password %>
redis_db: 0

View file

@ -12,7 +12,7 @@ test:
redis_db: <%= ENV.fetch('SIDEKIQ_SERVER_REDIS_DB') { 15 } %>
production:
redis_host: 'db-redis-ams3-76837-do-user-4455684-0.db.ondigitalocean.com'
redis_host: 'private-db-redis-ams3-76837-do-user-4455684-0.db.ondigitalocean.com'
redis_port: 25061
redis_password: <%= Rails.application.credentials.sidekiq_server_redis_password %>
redis_db: 0