Sha256: 02949465f3f75eb101399a6c6a16086401e6c03806c3b023baaf4eb43781b685
Contents?: true
Size: 528 Bytes
Versions: 6
Compression:
Stored size: 528 Bytes
Contents
CarrierWave.configure do |config| if ENV['KMS_ASSETS_STORAGE'] == 'fog' config.fog_provider = 'fog/aws' config.fog_credentials = { provider: 'AWS', aws_access_key_id: ENV['AWS_ACCESS_KEY_ID'], aws_secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'], region: ENV['AWS_REGION'] || 'us-east-1' } config.fog_directory = ENV['AWS_BUCKET'] # config.fog_public = false config.fog_attributes = { 'Cache-Control' => "max-age=#{365.day.to_i}" } end end
Version data entries
6 entries across 6 versions & 1 rubygems