CarrierWave.configure do |config| 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'], use_iam_profile: false, region: 'us-west-2', # optional, defaults to 'us-east-1' } config.fog_directory = ENV['S3_BUCKET'] config.fog_public = false config.fog_attributes = { cache_control: "public, max-age=#{365.days.to_i}" } # optional, defaults to {}end--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/6521b3f7-1f61-4270-8e93-001bc28b8a1e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.