Skip to content

Instantly share code, notes, and snippets.

@jlgasparrini
Created January 20, 2015 16:22
Show Gist options
  • Save jlgasparrini/059f83e80036d8971cf9 to your computer and use it in GitHub Desktop.
Save jlgasparrini/059f83e80036d8971cf9 to your computer and use it in GitHub Desktop.
Carrierwave settings to conect with AWS S3 API
# config/initializers/carrierwave.rb
CarrierWave.configure do |config|
config.fog_credentials = {
:provider => 'AWS',
:aws_access_key_id => ENV["AWS_ACCESS_KEY"],
:aws_secret_access_key => ENV["AWS_SECRET_KEY"],
:region => ENV["S3_REGION"]
}
config.fog_directory = ENV["AWS_BUCKET"]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment