1
0
Fork 0
This repository has been archived on 2023-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/config/sidekiq_server.yml

21 lines
633 B
YAML

default: &default
redis_host: <%= ENV.fetch('SIDEKIQ_SERVER_REDIS_HOST') { 'localhost' } %>
redis_port: <%= ENV.fetch('SIDEKIQ_SERVER_REDIS_PORT') { 6379 } %>
unsafe: &unsafe
<<: *default
redis_password: <%= ENV.fetch('SIDEKIQ_SERVER_REDIS_PASSWORD') { 'password' } %>
development:
<<: *unsafe
redis_db: <%= ENV.fetch('SIDEKIQ_SERVER_REDIS_DB') { 0 } %>
test:
<<: *unsafe
redis_db: <%= ENV.fetch('SIDEKIQ_SERVER_REDIS_DB') { 15 } %>
production:
<<: *default
redis_password: <%= Rails.application.credentials.sidekiq_server_redis_password %>
redis_db: <%= ENV.fetch('SIDEKIQ_SERVER_REDIS_DB') { 0 } %>