Sha256: c28311be719e89166ea6503370eb907c1246d9c0c0d028bc6845d3a9298b3f58
Contents?: true
Size: 574 Bytes
Versions: 8
Compression:
Stored size: 574 Bytes
Contents
# frozen_string_literal: true CarrierWave.configure do |config| if Rails.env.production? config.fog_provider = 'fog/aws' config.fog_credentials = { provider: 'AWS', aws_access_key_id: ENV['S3_ACCESS_KEY'], aws_secret_access_key: ENV['S3_SECRET_KEY'], region: 'eu-west-1' } config.fog_directory = ENV['S3_BUCKET'] config.cache_dir = Rails.root.join('tmp', 'uploads') config.fog_attributes = { 'Cache-Control': 'max-age=315576000' } # optional, defaults to {} config.storage :fog else config.storage :file end end
Version data entries
8 entries across 8 versions & 1 rubygems