Sha256: 2d87c69009cf956f7876060c9064c914311997ec6423e7bdd39f8f80e764e1dc

Contents?: true

Size: 380 Bytes

Versions: 16

Compression:

Stored size: 380 Bytes

Contents

# frozen_string_literal: true

Rails.application.config.to_prepare do
  redis_url = CloudGovConfig.dig "aws-elasticache-redis", "credentials", "uri"
  if redis_url.present?
    Sidekiq.configure_server do |config|
      config.redis = {url: redis_url, ssl: true}
    end

    Sidekiq.configure_client do |config|
      config.redis = {url: redis_url, ssl: true}
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rails_template_18f-1.2.0 lib/generators/rails_template18f/sidekiq/templates/config/initializers/redis.rb
rails_template_18f-1.1.0 lib/generators/rails_template18f/sidekiq/templates/config/initializers/redis.rb
rails_template_18f-1.0.0 lib/generators/rails_template18f/sidekiq/templates/config/initializers/redis.rb
rails_template_18f-0.8.2 lib/generators/rails_template18f/sidekiq/templates/config/initializers/redis.rb
rails_template_18f-0.8.1 lib/generators/rails_template18f/sidekiq/templates/config/initializers/redis.rb
rails_template_18f-0.8.0 lib/generators/rails_template18f/sidekiq/templates/config/initializers/redis.rb
rails_template_18f-0.7.2 lib/generators/rails_template18f/sidekiq/templates/config/initializers/redis.rb
rails_template_18f-0.7.1 lib/generators/rails_template18f/sidekiq/templates/config/initializers/redis.rb
rails_template_18f-0.7.0 lib/generators/rails_template18f/sidekiq/templates/config/initializers/redis.rb
rails_template_18f-0.6.0 lib/generators/rails_template18f/sidekiq/templates/config/initializers/redis.rb
rails_template_18f-0.5.3 lib/generators/rails_template18f/sidekiq/templates/config/initializers/redis.rb
rails_template_18f-0.5.2 lib/generators/rails_template18f/sidekiq/templates/config/initializers/redis.rb
rails_template_18f-0.5.1 lib/generators/rails_template18f/sidekiq/templates/config/initializers/redis.rb
rails_template_18f-0.5.0 lib/generators/rails_template18f/sidekiq/templates/config/initializers/redis.rb
rails_template_18f-0.4.1 lib/generators/rails_template18f/sidekiq/templates/config/initializers/redis.rb
rails_template_18f-0.4.0 lib/generators/rails_template18f/sidekiq/templates/config/initializers/redis.rb