Skip to content

Instantly share code, notes, and snippets.

@superacidjax
Created March 24, 2014 15:33
Show Gist options
  • Save superacidjax/9742583 to your computer and use it in GitHub Desktop.
Save superacidjax/9742583 to your computer and use it in GitHub Desktop.
Carrierwave config example
CarrierWave.configure do |config|
config.fog_credentials = {
:provider => 'AWS', # required
:aws_access_key_id => 'xxx', # required
:aws_secret_access_key => 'yyy', # required
:region => 'eu-west-1', # optional, defaults to 'us-east-1'
:host => 's3.example.com', # optional, defaults to nil
:endpoint => 'https://s3.example.com:8080' # optional, defaults to nil
}
config.fog_directory = 'name_of_directory' # required
config.fog_public = false # optional, defaults to true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment